관리-도구
편집 파일: 0002_new_column.cpython-311.pyc
� �܋f, � �L � d Z ddlmZ ddlmZmZ G d� dej � � ZdS )u6 Migration file which adds a new column with a default value. This should trigger a warning because adding new columns with default value on a large table leads to DB performance issues. See: https://github.com/PyCQA/pylint-django/issues/118 and https://docs.djangoproject.com/en/2.0/topics/migrations/#postgresql > ... adding columns with default values will cause a full rewrite of > the table, for a time proportional to its size. > For this reason, it’s recommended you always create new columns with > null=True, as this way they will be added immediately. � )� timedelta)� migrations�modelsc �l � e Zd ZdgZ ej dd ej ed� � �� � �� � gZ dS )� Migration)�input�0001_noerror_initial�testrun�estimated_timer )�default)� model_name�name�fieldN) �__name__� __module__�__qualname__�dependenciesr �AddFieldr � DurationFieldr � operations� � ��/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/pylint_django/tests/input/migrations/0002_new_column.pyr r s[ � � � � � � *��L� � �� �!�&�&�&�y�y��|�|�<�<�<� � � ��J�J�Jr r N)�__doc__�datetimer � django.dbr r r r r r �<module>r sr �� � � � � � � � � (� (� (� (� (� (� (� (� � � � � � �$� � � � � r