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 = 'ad0ed27f417f'
down_revision = '3d45df38ffa9'
revision = "ad0ed27f417f"
down_revision = "3d45df38ffa9"
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
with op.batch_alter_table('notifications', schema=None) as batch_op:
batch_op.add_column(sa.Column('entity_id', sa.Integer(), nullable=False))
with op.batch_alter_table("notifications", schema=None) as batch_op:
batch_op.add_column(sa.Column("entity_id", sa.Integer(), nullable=False))
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
with op.batch_alter_table('notifications', schema=None) as batch_op:
batch_op.drop_column('entity_id')
with op.batch_alter_table("notifications", schema=None) as batch_op:
batch_op.drop_column("entity_id")
# ### end Alembic commands ###