Skip to content

Commit

Permalink
Set server_default of deleted flag to False
Browse files Browse the repository at this point in the history
  • Loading branch information
jb3 committed Apr 8, 2024
1 parent 9d30baa commit 04698e1
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
Create Date: 2024-04-08 04:39:00.198882
"""

import sqlalchemy as sa

from alembic import op
Expand All @@ -19,13 +20,12 @@

def upgrade() -> None:
"""Apply the current migration."""
# ### commands auto generated by Alembic - please adjust! ###
op.add_column("categories", sa.Column("deleted", sa.Boolean(), nullable=False))
# ### end Alembic commands ###
op.add_column(
"categories",
sa.Column("deleted", sa.Boolean(), nullable=False, server_default="False", default=False),
)


def downgrade() -> None:
"""Revert the current migration."""
# ### commands auto generated by Alembic - please adjust! ###
op.drop_column("categories", "deleted")
# ### end Alembic commands ###

0 comments on commit 04698e1

Please sign in to comment.