OwlCyberSecurity - MANAGER
Edit File: executor.cpython-39.pyc
a ���e�I � @ s^ d dl mZ d dlmZmZ ddlmZ ddlm Z ddl mZ ddlm Z G dd � d �Zd S )� )�apps)� migrations�router� )�InvalidMigrationPlan)�MigrationLoader)�MigrationRecorder)�ProjectStatec @ st e Zd ZdZddd�Zddd�Zddd �Zdd d�Zdd � Zdd� Z ddd�Z dd� Zddd�Zdd� Z dd� ZdS ) �MigrationExecutorzu End-to-end migration execution - load migrations and run them up or down to a specified set of targets. Nc C s( || _ t| j �| _t| j �| _|| _d S �N)� connectionr �loaderr �recorder�progress_callback)�selfr r � r �^/home/gouroczh/virtualenv/pat/3.9/lib/python3.9/site-packages/django/db/migrations/executor.py�__init__ s zMigrationExecutor.__init__Fc s� g }|ri }nt | jj�}|D �]p� � d du r�| jj�� D ]R}|d � d kr<| jj�|�D ].}||v r^|�| jjj| df� |�|� q^q<q� |v �rF| jj rֈ | jjj vr�d| j_ | j�� | j||d� S t � fdd�| jjj � jD ��}|D ]F}| jj�|�D ]2}||v �r|�| jjj| df� |�|� �qq�q| jj�� �D ]:}||v�rT|�| jjj| df� | jjj| ||<