관리-도구
편집 파일: schema.cpython-38.pyc
U )�e2 � @ sL d dl Z e jdkr d dlmZ nd dlmZ d dlmZ G dd� de�ZdS )� N)� � )�BaseDatabaseSchemaEditor)�NOT_PROVIDEDc sx e Zd ZdZdZdZdZdZdZdZ dZ d Zd ZdZ dZd Zdd� Zdd� Z� fdd�Z� fdd�Z� fdd�Z� ZS )�DatabaseSchemaEditorz+RENAME TABLE %(old_table)s TO %(new_table)szMODIFY %(column)s %(type)s NULLz#MODIFY %(column)s %(type)s NOT NULLzMODIFY %(column)s %(type)szCALTER TABLE %(table)s CHANGE %(old_column)s %(new_column)s %(type)sz)ALTER TABLE %(table)s DROP INDEX %(name)sznALTER TABLE %(table)s ADD CONSTRAINT %(name)s FOREIGN KEY (%(column)s) REFERENCES %(to_table)s (%(to_column)s)z/ALTER TABLE %(table)s DROP FOREIGN KEY %(name)sz DROP INDEX %(name)s ON %(table)sz MODIFY %(column)s %(type)s NULL;z$MODIFY %(column)s %(type)s NOT NULL;zGALTER TABLE %(table)s ADD CONSTRAINT %(name)s PRIMARY KEY (%(columns)s)z&ALTER TABLE %(table)s DROP PRIMARY KEYc C s ddl m} |�|�|��S )Nr )�MySQLConverter)Zmysql.connector.conversionr �quote�escape)�self�valuer � r �r/opt/hc_python/lib64/python3.8/site-packages/../../../lib/python3.8/site-packages/mysql/connector/django/schema.py�quote_value&