2023-05-26 14:38:55 +03:00
|
|
|
"""remove selected_interpretation_id
|
|
|
|
|
|
|
|
Revision ID: 776fd9579f1f
|
|
|
|
Revises: 7c8a5aefe801
|
|
|
|
Create Date: 2023-05-26 14:38:44.858319
|
|
|
|
|
|
|
|
"""
|
|
|
|
from alembic import op
|
|
|
|
import sqlalchemy as sa
|
|
|
|
|
|
|
|
|
|
|
|
# revision identifiers, used by Alembic.
|
2023-06-08 11:03:00 +03:00
|
|
|
revision = "776fd9579f1f"
|
|
|
|
down_revision = "96995454b90d"
|
2023-05-26 14:38:55 +03:00
|
|
|
branch_labels = None
|
|
|
|
depends_on = None
|
|
|
|
|
|
|
|
|
|
|
|
def upgrade():
|
|
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
2023-06-08 11:03:00 +03:00
|
|
|
with op.batch_alter_table("sections", schema=None) as batch_op:
|
|
|
|
batch_op.drop_column("selected_interpretation_id")
|
2023-05-26 14:38:55 +03:00
|
|
|
|
|
|
|
# ### end Alembic commands ###
|
|
|
|
|
|
|
|
|
|
|
|
def downgrade():
|
|
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
2023-06-08 11:03:00 +03:00
|
|
|
with op.batch_alter_table("sections", schema=None) as batch_op:
|
|
|
|
batch_op.add_column(
|
|
|
|
sa.Column(
|
|
|
|
"selected_interpretation_id",
|
|
|
|
sa.INTEGER(),
|
|
|
|
autoincrement=False,
|
|
|
|
nullable=True,
|
|
|
|
)
|
|
|
|
)
|
2023-05-26 14:38:55 +03:00
|
|
|
|
|
|
|
# ### end Alembic commands ###
|