| 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/db/backends/oracle/__pycache__/ |
Upload File : |
�
�|�e�# � �R � d dl Z d dlZd dlZd dlmZ d dlmZ G d� de� � ZdS )� N)�
DatabaseError)�BaseDatabaseSchemaEditorc � � � e Zd ZdZdZdZdZdZdZeZ dZ
dZd Zd
Z
dZd� Z� fd
�Z� fd�Zd� fd� Z� fd�Z� fd�Zd� Zd� Zd� Z� fd�Z� fd�Zd� Zd� Zd� Z� fd�Z� xZS )�DatabaseSchemaEditorz3ALTER TABLE %(table)s ADD %(column)s %(definition)szMODIFY %(column)s %(type)szMODIFY %(column)s NULLzMODIFY %(column)s NOT NULLz%MODIFY %(column)s DEFAULT %(default)szMODIFY %(column)s DEFAULT NULLz'MODIFY %(column)s %(type)s%(collation)sz,ALTER TABLE %(table)s DROP COLUMN %(column)szHCONSTRAINT %(name)s REFERENCES %(to_table)s(%(to_column)s)%(deferrable)sz(DROP TABLE %(table)s CASCADE CONSTRAINTSz9CREATE INDEX %(name)s ON %(table)s (%(columns)s)%(extra)sc � � t |t j t j t j f� � rd|z S t |t � � r-d|� dd� � � dd� � z S t |t t t f� � rd|� � � z S t |t � � r|rdndS t |� � S )Nz'%s'�'z''�%z%%�1�0)�
isinstance�datetime�date�time�str�replace�bytes� bytearray�
memoryview�hex�bool��self�values �B/usr/lib/python3/dist-packages/django/db/backends/oracle/schema.py�quote_valuez DatabaseSchemaEditor.quote_value s� � ��e�h�m�X�]�H�<M�N�O�O� ��E�>�!�
��s�
#�
#� ��E�M�M�$��7�7�?�?��T�J�J�J�J�
���y�*�=�
>�
>� ��E�I�I�K�K�'�'�
��t�
$�
$� ��(�3�3�S�(��u�:�:�� c �� �� | � |j j |j � � r%| � |j j |j � � t � � � ||� � d S �N)�_is_identity_column�_meta�db_table�column�_drop_identity�super�remove_field)r �model�field� __class__s �r r% z!DatabaseSchemaEditor.remove_field% sb �� � �#�#�E�K�$8�%�,�G�G� D������ 4�e�l�C�C�C�
�����U�E�*�*�*�*�*r c �� �� t � � � |� � | � dd| j j � |j j � � iz � � d S )NaK
DECLARE
i INTEGER;
BEGIN
SELECT COUNT(1) INTO i FROM USER_SEQUENCES
WHERE SEQUENCE_NAME = '%(sq_name)s';
IF i = 1 THEN
EXECUTE IMMEDIATE 'DROP SEQUENCE "%(sq_name)s"';
END IF;
END;
/�sq_name)r$ �delete_model�execute�
connection�ops�_get_no_autofield_sequence_namer r! )r r&