aboutsummaryrefslogtreecommitdiffstats
path: root/alembic
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2021-04-18 13:44:08 +0100
committerGravatar GitHub <[email protected]>2021-04-18 13:44:08 +0100
commit9ddfdd23ab2cfd7d8f4389ea319b4bc236ec95f2 (patch)
treedd9e50a0c4dc8f51b9ffba6d0e7771864f9c2ad6 /alembic
parentChage from GHCR_TOKEN secret to GITHUB_TOKEN for Docker image publish (diff)
parentRemove unused Context import (diff)
Merge pull request #3 from python-discord/remove-opt-out
Diffstat (limited to 'alembic')
-rw-r--r--alembic/versions/911049796159_remove_opt_out_column.py28
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 ###