관리-도구
편집 파일: creation.cpython-38.pyc
U )�e� � @ sp d dl Z d dlmZ e jdkr,d dlmZ nd dlmZ e jdk rPd dlmZ nd dl mZ G dd� de�Z dS ) � N)�models�� � )�BaseDatabaseCreation�r � )� truncate_namec sT e Zd ZdZ� fdd�Zdd� Zejdk r4dd� Znd d� Zd d� Z dd � Z � ZS )�DatabaseCreationz3Maps Django Field object with MySQL data types c sr t t| ��|� tjdk rnddddddddddd d ddd dd ddddddd�| _| jjdkrn| j�ddd�� d S )Nr zinteger AUTO_INCREMENTZlongblob�boolzvarchar(%(max_length)s)�date�datetimez+numeric(%(max_digits)s, %(decimal_places)s)zdouble precision�integerZbigintzchar(15)zchar(39)zinteger UNSIGNEDzsmallint UNSIGNEDZsmallintZlongtext�time)Z AutoFieldZBinaryFieldZBooleanFieldZ CharFieldZCommaSeparatedIntegerFieldZ DateField� DateTimeFieldZDecimalFieldZ FileFieldZ FilePathFieldZ FloatFieldZIntegerFieldZBigIntegerFieldZIPAddressFieldZGenericIPAddressFieldZNullBooleanFieldZ OneToOneFieldZPositiveIntegerFieldZPositiveSmallIntegerFieldZ SlugFieldZSmallIntegerFieldZ TextField� TimeField)� � � zdatetime(6)ztime(6))r r ) �superr �__init__�django�VERSION� data_types� connectionZ mysql_version�update)�selfr �� __class__� �t/opt/hc_python/lib64/python3.8/site-packages/../../../lib/python3.8/site-packages/mysql/connector/django/creation.pyr s>