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/migrations/__pycache__/ |
Upload File : |
o 3�a�# � @ sZ d dl mZ d dlmZ d dlmZ ddlmZ G dd� d�ZG dd � d e �Z d d� ZdS ) � )� operations)�get_migration_name_timestamp)�atomic� )�IrreversibleErrorc @ sv e Zd ZdZg Zg Zg Zg ZdZdZ dd� Z dd� Zdd � Zd d� Z dd � Zddd�Zddd�Zddd�Zdd� ZdS )� Migrationa� The base class for all migrations. Migration files will import this from django.db.migrations.Migration and subclass it as a class called Migration. It will have one or more of the following attributes: - operations: A list of Operation instances, probably from django.db.migrations.operations - dependencies: A list of tuples of (app_path, migration_name) - run_before: A list of tuples of (app_path, migration_name) - replaces: A list of migration_names Note that all migrations come out of migrations and into the Loader or Graph as instances, having been initialized with their app label and name. NTc C sH || _ || _t| jj�| _t| jj�| _t| jj�| _t| jj�| _d S �N)�name� app_label�list� __class__r �dependencies� run_before�replaces)�selfr r � r �@/usr/lib/python3/dist-packages/django/db/migrations/migration.py�__init__5 s zMigration.__init__c C s"