3
ž¾6ba  ã               @   s4   d dl mZ d dlmZ eeƒZG dd„ deƒZdS )é    )ÚBaseDatabaseSchemaEditor)Ú	getLoggerc               @   s(   e Zd ZdZdZdZdd„ Zdd„ ZdS )	ÚDatabaseSchemaEditorzJALTER TABLE %(table)s ADD CONSTRAINT %(name)s INDEX (%(columns)s)%(extra)sz4ALTER TABLE %(table)s DROP CONSTRAINT %(name)s INDEXzQALTER TABLE %(table)s ADD CONSTRAINT %(name)s UNIQUE (%(columns)s)(%(condition)s)c             C   s   |S )N© )ÚselfÚvaluer   r   úL/var/www/html/sandeepIITI/myenv/lib/python3.6/site-packages/djongo/schema.pyÚquote_value   s    z DatabaseSchemaEditor.quote_valuec             C   s
   t ƒ ‚d S )N)ÚNotImplementedError)r   r   r   r   r   Úprepare_default   s    z$DatabaseSchemaEditor.prepare_defaultN)Ú__name__Ú
__module__Ú__qualname__Zsql_create_indexZsql_delete_indexZsql_create_unique_indexr	   r   r   r   r   r   r      s
   r   N)Zdjango.db.backends.base.schemar   Úloggingr   r   Úloggerr   r   r   r   r   Ú<module>   s   