From dd63ff37095f986e8346d40d6116c9407b18b2e1 Mon Sep 17 00:00:00 2001 From: ElJeffe Date: Tue, 12 Jul 2022 16:39:34 -0400 Subject: [PATCH] Update for Alembic Boolean nullable --- alembic/versions/4aa1bab989f8_add_email_token.py | 2 +- alembic/versions/83f862086ff0_add_flag_lock.py | 2 +- alembic/versions/8fa7d8ac2b2f_add_password_token_table.py | 2 +- alembic/versions/9443ded40161_add_box_lock.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/alembic/versions/4aa1bab989f8_add_email_token.py b/alembic/versions/4aa1bab989f8_add_email_token.py index e6409c9b..07c7ae1b 100644 --- a/alembic/versions/4aa1bab989f8_add_email_token.py +++ b/alembic/versions/4aa1bab989f8_add_email_token.py @@ -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), ) diff --git a/alembic/versions/83f862086ff0_add_flag_lock.py b/alembic/versions/83f862086ff0_add_flag_lock.py index b04dccf9..48dd8639 100644 --- a/alembic/versions/83f862086ff0_add_flag_lock.py +++ b/alembic/versions/83f862086ff0_add_flag_lock.py @@ -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(): diff --git a/alembic/versions/8fa7d8ac2b2f_add_password_token_table.py b/alembic/versions/8fa7d8ac2b2f_add_password_token_table.py index bd709d31..eff75be4 100644 --- a/alembic/versions/8fa7d8ac2b2f_add_password_token_table.py +++ b/alembic/versions/8fa7d8ac2b2f_add_password_token_table.py @@ -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), ) diff --git a/alembic/versions/9443ded40161_add_box_lock.py b/alembic/versions/9443ded40161_add_box_lock.py index 56d47608..a8693ef8 100644 --- a/alembic/versions/9443ded40161_add_box_lock.py +++ b/alembic/versions/9443ded40161_add_box_lock.py @@ -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():