| Server IP : 217.160.0.135 / Your IP : 216.73.217.85 Web Server : Apache System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64 User : sws1074145052 ( 1074145052) PHP Version : 8.3.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /lib/python3/dist-packages/django/core/management/commands/__pycache__/ |
Upload File : |
�
�|�e�A � �� � d dl Z d dlZd dlmZ d dlmZ d dlmZmZm Z d dl
mZmZ d dl
mZmZmZ d dlmZ d dlmZ d d lmZ d d
lmZmZ d dlmZ d dlmZ G d
� de� � ZdS )� N)�
import_module)�apps)�BaseCommand�CommandError�no_translations)�emit_post_migrate_signal�emit_pre_migrate_signal)�DEFAULT_DB_ALIAS�connections�router)�MigrationAutodetector)�MigrationExecutor)�AmbiguityError)�
ModelState�ProjectState)�module_has_submodule)� Truncatorc �V � e Zd ZdZg Zd� Zed� � � Zd d�Zd� Z e
d� � � ZdS )
�CommandzMUpdates database schema. Manages both apps with migrations and those without.c � � |� ddd�� � |� ddd�� � |� d dd
�� � |� ddd
dd�� � |� dt d�� � |� ddd�� � |� ddd�� � |� ddd�� � |� ddd�� � |� dddd�� � d S )Nz
--skip-checks�
store_truezSkip system checks.)�action�help� app_label�?z5App label of an application to synchronize the state.)�nargsr �migration_namezpDatabase state will be brought to the state after that migration. Use the name "zero" to unapply all migrations.z --noinputz
--no-input�store_false�interactivez:Tells Django to NOT prompt the user for input of any kind.)r �destr z
--databasezHNominates a database to synchronize. Defaults to the "default" database.)�defaultr z--fakez5Mark migrations as run without actually running them.z--fake-initialz�Detect if tables already exist and fake-apply initial migrations if so. Make sure that the current database schema matches your initial migration before using this flag. Django will only check for an existing table name.z--planz=Shows a list of the migration actions that will be performed.z--run-syncdbz+Creates tables for apps without migrations.z--check�check_unappliedz;Exits with a non-zero status if unapplied migrations exist.)�add_argumentr
)�self�parsers �I/usr/lib/python3/dist-packages/django/core/management/commands/migrate.py�
add_argumentszCommand.add_arguments s� � �����L�&� �
�
�
� ����s�H� �
�
�
� ����C�M� �
�
�
�
�����m�-�M� �
�
�
� ����$�[� �
�
�
�
����\�H� �
�
�
� ����\�L� �
�
�
� ����\�P� �
�
�
� ����<�>� �
�
�
� ����l�1B�N� �
�
�
�
�
� c �� �!� |d }|d s| � |g�� � |d | _ |d | _ t j � � D ],}t |j d� � rt d|j � � �-t | }|�
� � t || j � � }|j
� |� � |j
� � � }|rCd� d � |� � � D � � � � }t% d
|z � � �|d } d}
|d
r�|d
�! t j �!� � n.# t( $ r!}t% t+ |� � � � �d }~ww xY w| r!�!|j
j v rt% d�!z � � �n �!|j
j vrt% d�!z � � �|d
r�|d r�|d }|dk r�!d fg}
nj |j
� �!|� � }nC# t0 $ r t% d|�d�!�d�� � �t2 $ r t% d|�d�!�d�� � �w xY w�!|j fg}
d}
nQ|d
r+�!fd�|j
j � � � D � � }
n|j
j � � � }
|� |
� � }|o|d }|d r�| j � d| j j � � |s| j � d� � |D ]�\ }}| j � t+ |� � | j j! � � |j"