← Back
Editing: ddl_references.cpython-311.pyc
� �|�e� � � � d Z ddlmZ G d� d� � Z G d� de� � Z G d� de� � Z G d � d e� � Z G d� de� � Z G d � de� � Z G d� de� � Z G d� de� � Z G d� de� � ZdS )z~ Helpers to manipulate deferred DDL statements that might need to be adjusted or discarded within when executing a migration. � )�deepcopyc �6 � e Zd ZdZd� Zd� Zd� Zd� Zd� Zd� Z dS ) � Referencez0Base class that defines the reference interface.c � � dS )zU Return whether or not this instance references the specified table. F� ��self�tables �C/usr/lib/python3/dist-packages/django/db/backends/ddl_references.py�references_tablezReference.references_table � � � �u� c � � dS )zV Return whether or not this instance references the specified column. Fr �r r �columns r �references_columnzReference.references_column r r c � � dS )zI Rename all references to the old_name to the new_table. Nr �r � old_table� new_tables r �rename_table_referencesz!Reference.rename_table_references � � � �r c � � dS )zL Rename all references to the old_column to the new_column. Nr )r r � old_column� new_columns r �rename_column_referencesz"Reference.rename_column_references r r c �B � d| j j �dt | � � �d�S )N�<� �>)� __class__�__name__�str�r s r �__repr__zReference.__repr__# s$ � � � �N�3�3�3�S��Y�Y�Y�Y�?�?r c � � t d� � �)Nz>Subclasses must define how they should be converted to string.)�NotImplementedErrorr$ s r �__str__zReference.__str__&