45 lines
1.2 KiB
Python
45 lines
1.2 KiB
Python
"""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 ###
|