OwlCyberSecurity - MANAGER
Edit File: ddl_references.cpython-39.pyc
a ���e� � @ s� d Z ddlmZ G dd� d�ZG dd� de�ZG dd� de�ZG d d � d e�ZG dd� de�ZG d d� de�ZG dd� de�Z G dd� de�Z G dd� de�ZdS )z~ Helpers to manipulate deferred DDL statements that might need to be adjusted or discarded within when executing a migration. � )�deepcopyc @ s@ e Zd ZdZdd� Zdd� Zdd� Zdd � Zd d� Zdd � Z dS )� Referencez0Base class that defines the reference interface.c C s dS )zU Return whether or not this instance references the specified table. F� ��self�tabler r �b/home/gouroczh/virtualenv/pat/3.9/lib/python3.9/site-packages/django/db/backends/ddl_references.py�references_table s zReference.references_tablec C s dS )zV Return whether or not this instance references the specified column. Fr �r r �columnr r r �references_column s zReference.references_columnc C s dS )zI Rename all references to the old_name to the new_table. Nr �r � old_table� new_tabler r r �rename_table_references s z!Reference.rename_table_referencesc C s dS )zL Rename all references to the old_column to the new_column. Nr �r r � old_column� new_columnr r r �rename_column_references s z"Reference.rename_column_referencesc C s d| j jt| �f S )Nz<%s %r>)� __class__�__name__�str�r r r r �__repr__# s zReference.__repr__c C s t d��d S )Nz>Subclasses must define how they should be converted to string.)�NotImplementedErrorr r r r �__str__&