| Server IP : 217.160.0.135 / Your IP : 216.73.217.85 Web Server : Apache System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64 User : sws1074145052 ( 1074145052) PHP Version : 8.3.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /lib/python3/dist-packages/django/contrib/postgres/__pycache__/ |
Upload File : |
�
�|�e$ � �� � d dl mZmZmZ d dlmZmZ d dlmZm Z d dl
mZ G d� de� � Z G d� de� � Z
G d � d
e� � Z G d� de� � Z G d
� de� � Z G d� de� � Z G d� de� � Z G d� de� � Z G d� de� � Z G d� d� � Z G d� dee� � Z G d� dee � � Z G d� de� � Z G d� d e� � Z G d!� d"e� � Zd#S )$� )�get_citext_oids�get_hstore_oids�register_type_handlers)�NotSupportedError�router)�AddIndex�RemoveIndex)� Operationc �L � e Zd ZdZd� Zd� Zd� Zd� Zd� Zd� Z e
d� � � Zd S )
�CreateExtensionTc � � || _ d S �N��name)�selfr s �D/usr/lib/python3/dist-packages/django/contrib/postgres/operations.py�__init__zCreateExtension.__init__ s
� ��� � � � c � � d S r � �r � app_label�states r �state_forwardszCreateExtension.state_forwards � � ��r c �r � |j j dk st j |j j |� � sd S | � || j � � s0|� d|� | j � � z � � t j
� � t j
� � t |j � � d S )N�
postgresqlz!CREATE EXTENSION IF NOT EXISTS %s)
�
connection�vendorr �
allow_migrate�alias�extension_existsr �execute�
quote_namer �cache_clearr r �r r �
schema_editor�
from_state�to_states r �database_forwardsz!CreateExtension.database_forwards s� � ��$�+�|�;�;��$�]�%=�%C�Y�O�O�
<�
�F��$�$�]�D�I�>�>� ��!�!�3�m�6N�6N�t�y�6Y�6Y�Y�
�
�
� �#�%�%�%��#�%�%�%� �}�7�8�8�8�8�8r c �* � t j |j j |� � sd S | � || j � � r0|� d|� | j � � z � � t j � � t j � � d S )NzDROP EXTENSION IF EXISTS %s)r r r r! r"