diff options
author | 2021-04-09 05:10:46 +0100 | |
---|---|---|
committer | 2021-04-09 05:10:46 +0100 | |
commit | 1f4fa2d4638f26cfc542250bff08206a12f88c8a (patch) | |
tree | d4f9f8070ca98563be949f6a07d7d223fc3b501d /alembic | |
parent | Chage from GHCR_TOKEN secret to GITHUB_TOKEN for Docker image publish (diff) |
Remove opt_out column
Diffstat (limited to 'alembic')
-rw-r--r-- | alembic/versions/911049796159_remove_opt_out_column.py | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/alembic/versions/911049796159_remove_opt_out_column.py b/alembic/versions/911049796159_remove_opt_out_column.py new file mode 100644 index 0000000..6ba71ba --- /dev/null +++ b/alembic/versions/911049796159_remove_opt_out_column.py @@ -0,0 +1,28 @@ +"""Remove opt_out column + +Revision ID: 911049796159 +Revises: 408aac572bff +Create Date: 2021-04-09 05:09:28.565384 + +""" +from alembic import op +import sqlalchemy as sa + + +# revision identifiers, used by Alembic. +revision = '911049796159' +down_revision = '408aac572bff' +branch_labels = None +depends_on = None + + +def upgrade(): + # ### commands auto generated by Alembic - please adjust! ### + op.drop_column('users', 'opt_out') + # ### end Alembic commands ### + + +def downgrade(): + # ### commands auto generated by Alembic - please adjust! ### + op.add_column('users', sa.Column('opt_out', sa.BOOLEAN(), autoincrement=False, nullable=True)) + # ### end Alembic commands ### |