2023-05-11 12:07:22 +00:00
|
|
|
"""approved fields
|
|
|
|
|
|
|
|
Revision ID: 5df1fabbee7d
|
|
|
|
Revises: 1dfa1f2c208f
|
|
|
|
Create Date: 2023-05-11 15:06:42.883725
|
|
|
|
|
|
|
|
"""
|
|
|
|
from alembic import op
|
|
|
|
import sqlalchemy as sa
|
|
|
|
|
|
|
|
|
|
|
|
# revision identifiers, used by Alembic.
|
2023-05-29 06:36:19 +00:00
|
|
|
revision = "5df1fabbee7d"
|
|
|
|
down_revision = "1dfa1f2c208f"
|
2023-05-11 12:07:22 +00:00
|
|
|
branch_labels = None
|
|
|
|
depends_on = None
|
|
|
|
|
|
|
|
|
|
|
|
def upgrade():
|
|
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
2023-05-29 06:36:19 +00:00
|
|
|
with op.batch_alter_table("comments", schema=None) as batch_op:
|
|
|
|
batch_op.add_column(sa.Column("approved", sa.Boolean(), nullable=True))
|
|
|
|
batch_op.drop_column("included_with_interpretation")
|
2023-05-11 12:07:22 +00:00
|
|
|
|
2023-05-29 06:36:19 +00:00
|
|
|
with op.batch_alter_table("interpretations", schema=None) as batch_op:
|
|
|
|
batch_op.add_column(sa.Column("approved", sa.Boolean(), nullable=True))
|
2023-05-11 12:07:22 +00:00
|
|
|
|
|
|
|
# ### end Alembic commands ###
|
|
|
|
|
|
|
|
|
|
|
|
def downgrade():
|
|
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
2023-05-29 06:36:19 +00:00
|
|
|
with op.batch_alter_table("interpretations", schema=None) as batch_op:
|
|
|
|
batch_op.drop_column("approved")
|
|
|
|
|
|
|
|
with op.batch_alter_table("comments", schema=None) as batch_op:
|
|
|
|
batch_op.add_column(
|
|
|
|
sa.Column(
|
|
|
|
"included_with_interpretation",
|
|
|
|
sa.BOOLEAN(),
|
|
|
|
autoincrement=False,
|
|
|
|
nullable=True,
|
|
|
|
)
|
|
|
|
)
|
|
|
|
batch_op.drop_column("approved")
|
2023-05-11 12:07:22 +00:00
|
|
|
|
|
|
|
# ### end Alembic commands ###
|