Skip to content

Commit

Permalink
Update for Alembic Boolean nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
eljeffeg committed Jul 12, 2022
1 parent cfecf5f commit dd63ff3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion alembic/versions/4aa1bab989f8_add_email_token.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def upgrade():
nullable=False,
),
sa.Column("value", sa.VARCHAR(length=64), nullable=False, unique=True),
sa.Column("valid", sa.BOOLEAN, nullable=False),
sa.Column("valid", sa.BOOLEAN),
)


Expand Down
2 changes: 1 addition & 1 deletion alembic/versions/83f862086ff0_add_flag_lock.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@


def upgrade():
op.add_column("flag", sa.Column("_locked", sa.BOOLEAN, nullable=False, default=False))
op.add_column("flag", sa.Column("_locked", sa.BOOLEAN))


def downgrade():
Expand Down
2 changes: 1 addition & 1 deletion alembic/versions/8fa7d8ac2b2f_add_password_token_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def upgrade():
nullable=False,
),
sa.Column("value", sa.VARCHAR(length=64), nullable=False, unique=True),
sa.Column("used", sa.BOOLEAN, nullable=False, default=False),
sa.Column("used", sa.BOOLEAN),
)


Expand Down
2 changes: 1 addition & 1 deletion alembic/versions/9443ded40161_add_box_lock.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@


def upgrade():
op.add_column("box", sa.Column("_locked", sa.BOOLEAN, nullable=False, default=False))
op.add_column("box", sa.Column("_locked", sa.BOOLEAN))


def downgrade():
Expand Down

0 comments on commit dd63ff3

Please sign in to comment.