Server : Apache System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64 User : dh_edsupp ( 6597262) PHP Version : 8.2.26 Disable Function : NONE Directory : /lib/python3/dist-packages/django/contrib/postgres/__pycache__/ |
Upload File : |
o 3�a$ � @ s6 d dl mZmZmZ d dlmZmZ d dlmZm Z d dl mZ G dd� de�ZG dd� de�Z G d d � d e�ZG dd� de�ZG d d� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� d�ZG dd� dee�ZG dd� dee �ZG dd� de�ZG dd � d e�ZG d!d"� d"e�Zd#S )$� )�get_citext_oids�get_hstore_oids�register_type_handlers)�NotSupportedError�router)�AddIndex�RemoveIndex)� Operationc @ sL e Zd ZdZdd� Zdd� Zdd� Zdd � Zd d� Zdd � Z e dd� �ZdS )�CreateExtensionTc C s || _ d S �N��name)�selfr � r �D/usr/lib/python3/dist-packages/django/contrib/postgres/operations.py�__init__ � zCreateExtension.__init__c C � d S r r �r � app_label�stater r r �state_forwards � zCreateExtension.state_forwardsc C sb |j jdkst�|j j|�sd S | �|| j�s"|�d|�| j� � t � � t� � 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_stater r r �database_forwards s ��z!CreateExtension.database_forwardsc C sL t �|jj|�s d S | �|| j�r|�d|�| j� � t� � t � � d S )NzDROP EXTENSION IF EXISTS %s)r r r r r r r r r r! r r"