This commit is contained in:
SvyatoslavArtymovych 2023-06-15 10:25:06 +03:00
parent e19d728b0a
commit 001a2cf98a
1 changed files with 6 additions and 6 deletions

View File

@ -10,23 +10,23 @@ import sqlalchemy as sa
# revision identifiers, used by Alembic. # revision identifiers, used by Alembic.
revision = 'ad0ed27f417f' revision = "ad0ed27f417f"
down_revision = '3d45df38ffa9' down_revision = "3d45df38ffa9"
branch_labels = None branch_labels = None
depends_on = None depends_on = None
def upgrade(): def upgrade():
# ### commands auto generated by Alembic - please adjust! ### # ### commands auto generated by Alembic - please adjust! ###
with op.batch_alter_table('notifications', schema=None) as batch_op: with op.batch_alter_table("notifications", schema=None) as batch_op:
batch_op.add_column(sa.Column('entity_id', sa.Integer(), nullable=False)) batch_op.add_column(sa.Column("entity_id", sa.Integer(), nullable=False))
# ### end Alembic commands ### # ### end Alembic commands ###
def downgrade(): def downgrade():
# ### commands auto generated by Alembic - please adjust! ### # ### commands auto generated by Alembic - please adjust! ###
with op.batch_alter_table('notifications', schema=None) as batch_op: with op.batch_alter_table("notifications", schema=None) as batch_op:
batch_op.drop_column('entity_id') batch_op.drop_column("entity_id")
# ### end Alembic commands ### # ### end Alembic commands ###