https://t.me/RX1948
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/db/backends/mysql/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/django/db/backends/mysql/__pycache__/validation.cpython-310.pyc
o

�ah�@s8ddlmZddlmZddlmZGdd�de�ZdS)�)�checks)�BaseDatabaseValidation)�get_docs_versioncs,eZdZ�fdd�Zdd�Zdd�Z�ZS)�DatabaseValidationcs,t�jdi|��}|�|jdi|���|S)N�)�super�check�extend�_check_sql_mode)�self�kwargs�issues��	__class__r�E/usr/lib/python3/dist-packages/django/db/backends/mysql/validation.pyrszDatabaseValidation.checkcKsL|jjddh@s$tjd|jj|jjfd|jj|jjt�ffdd�gSgS)N�STRICT_TRANS_TABLES�STRICT_ALL_TABLESz6%s Strict Mode is not set for database connection '%s'z�%s's Strict Mode fixes many data integrity problems in %s, such as data truncation upon insertion, by escalating warnings into errors. It is strongly recommended you activate it. See: https://docs.djangoproject.com/en/%s/ref/databases/#mysql-sql-modez
mysql.W002)�hint�id)�
connection�sql_moder�Warning�display_name�aliasr)rrrrrr
s�����z"DatabaseValidation._check_sql_modecCs�g}|�d�r)|jr)|jdust|j�dkr)|�tjd|jj|dt	�dd��|j
rF|��|jjvrF|�tjd|jj|fd	|d
d��|S)a
        MySQL has the following field length restriction:
        No character (varchar) fields can have a length exceeding 255
        characters if they have a unique index on them.
        MySQL doesn't support a database index on some data types.
        �varcharN�z>%s may not allow unique CharFields to have a max_length > 255.zOSee: https://docs.djangoproject.com/en/%s/ref/databases/#mysql-character-fieldsz
mysql.W003)�objrrz3%s does not support a database index on %s columns.zKAn index won't be created. Silence this warning if you don't care about it.zfields.W162)rrr)
�
startswith�unique�
max_length�int�appendrrrrr�db_index�lower�_limited_data_types)r�field�
field_type�errorsrrr�check_field_type!s6����

���z#DatabaseValidation.check_field_type)�__name__�
__module__�__qualname__rr
r(�
__classcell__rrrrrsrN)�django.corer�"django.db.backends.base.validationr�django.utils.versionrrrrrr�<module>s

https://t.me/RX1948 - 2025