From 63115f0328a086230b963fb89074d8662cef8bfd Mon Sep 17 00:00:00 2001 From: Your Name Date: Wed, 3 Apr 2024 23:28:55 +0300 Subject: [PATCH] asdsadsa --- .gitignore | 7 ++- migrations/versions/4eacd6dcd461_.py | 54 ++++++++++++++++++ .../__pycache__/6fc3d1adb061_.cpython-312.pyc | Bin 1549 -> 1549 bytes .../__pycache__/885bdd7b5161_.cpython-312.pyc | Bin 1301 -> 1301 bytes 4 files changed, 60 insertions(+), 1 deletion(-) create mode 100644 migrations/versions/4eacd6dcd461_.py diff --git a/.gitignore b/.gitignore index 1408a6e..502dd3b 100644 --- a/.gitignore +++ b/.gitignore @@ -9,4 +9,9 @@ project.db c*.txt migrations/__pycache__/* migrations/versions/__pycache__/* -__pycache__ \ No newline at end of file +__pycache__ +migrations/versions/__pycache__ +migrations/__pycache__ +migrations/versions/__pycache__/6fc3d1adb061_.cpython-312.pyc +migrations/versions/__pycache__/6fc3d1adb061_.cpython-312.pyc +migrations/versions/__pycache__/885bdd7b5161_.cpython-312.pyc \ No newline at end of file diff --git a/migrations/versions/4eacd6dcd461_.py b/migrations/versions/4eacd6dcd461_.py new file mode 100644 index 0000000..7bbfec8 --- /dev/null +++ b/migrations/versions/4eacd6dcd461_.py @@ -0,0 +1,54 @@ +"""empty message + +Revision ID: 4eacd6dcd461 +Revises: c208cbc25232 +Create Date: 2024-04-03 23:25:42.271936 + +""" +from alembic import op +import sqlalchemy as sa + + +# revision identifiers, used by Alembic. +revision = '4eacd6dcd461' +down_revision = 'c208cbc25232' +branch_labels = None +depends_on = None + + +def upgrade(): + # ### commands auto generated by Alembic - please adjust! ### + with op.batch_alter_table('oboruds', schema=None) as batch_op: + batch_op.add_column(sa.Column('numberved', sa.String(length=100), nullable=True)) + batch_op.add_column(sa.Column('numberppasu', sa.String(length=100), nullable=True)) + batch_op.add_column(sa.Column('balancenumber', sa.Integer(), nullable=True)) + batch_op.alter_column('nazvanie', + existing_type=sa.TEXT(length=500), + type_=sa.String(length=500), + existing_nullable=True) + batch_op.alter_column('raspologenie', + existing_type=sa.TEXT(length=200), + type_=sa.String(length=200), + existing_nullable=True) + batch_op.drop_column('buhnumberpp') + + # ### end Alembic commands ### + + +def downgrade(): + # ### commands auto generated by Alembic - please adjust! ### + with op.batch_alter_table('oboruds', schema=None) as batch_op: + batch_op.add_column(sa.Column('buhnumberpp', sa.VARCHAR(length=100), nullable=True)) + batch_op.alter_column('raspologenie', + existing_type=sa.String(length=200), + type_=sa.TEXT(length=200), + existing_nullable=True) + batch_op.alter_column('nazvanie', + existing_type=sa.String(length=500), + type_=sa.TEXT(length=500), + existing_nullable=True) + batch_op.drop_column('balancenumber') + batch_op.drop_column('numberppasu') + batch_op.drop_column('numberved') + + # ### end Alembic commands ### diff --git a/migrations/versions/__pycache__/6fc3d1adb061_.cpython-312.pyc b/migrations/versions/__pycache__/6fc3d1adb061_.cpython-312.pyc index 42c75e8fe00a35ef480aa614c57cb252456ff8f1..4d546f9f7ca6012e9499b75a9532fc7557f65d40 100644 GIT binary patch delta 53 zcmeC>>E+=)&CAQh00bX)@TQ&E$oq;((%C8|peR4RC^0uTGcP?Rpt2+*KMyF9wON4q GFB1UC01|Hi delta 53 zcmeC>>E+=)&CAQh00hrDc+&Q50%WVP?Voul$e{FnU@|DP+5|Zp9d1zEWrGi F2>`1`5vc$G diff --git a/migrations/versions/__pycache__/885bdd7b5161_.cpython-312.pyc b/migrations/versions/__pycache__/885bdd7b5161_.cpython-312.pyc index 74241f9535d5eaf3dc252ae18501e377824a4f06..aa20e0ed9c33cefa3dec43d423a33b0d6a771671 100644 GIT binary patch delta 33 ncmbQrHI<9|G%qg~0}xC|<=My`#Kh=4IgUx3F>7-f(|jfXe)R{> delta 33 ncmbQrHI<9|G%qg~0}$Mm;@!v{#Kh<_IgUx3F@19x(|jfXe{=`X