This commit is contained in:
Your Name
2024-03-13 08:43:28 +03:00
parent 6edb0b2601
commit 4f141d962d
3 changed files with 44 additions and 0 deletions

View File

@@ -0,0 +1,44 @@
"""empty message
Revision ID: ec6bbcd361bd
Revises:
Create Date: 2024-03-13 08:22:23.761783
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'ec6bbcd361bd'
down_revision = None
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.drop_column('duplicate')
with op.batch_alter_table('zametki', schema=None) as batch_op:
batch_op.alter_column('txtzam',
existing_type=sa.TEXT(length=10000),
type_=sa.String(length=10000),
existing_nullable=True)
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
with op.batch_alter_table('zametki', schema=None) as batch_op:
batch_op.alter_column('txtzam',
existing_type=sa.String(length=10000),
type_=sa.TEXT(length=10000),
existing_nullable=True)
with op.batch_alter_table('oboruds', schema=None) as batch_op:
batch_op.add_column(sa.Column('duplicate', sa.BOOLEAN(), nullable=True))
# ### end Alembic commands ###