blob: 812c80b432b9ad13b2c055328c5b9961bf91f59c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
"""
Remove opt_out column.
Revision ID: 911049796159
Revises: 408aac572bff
Create Date: 2021-04-09 05:09:28.565384
"""
import sqlalchemy as sa
from alembic import op
# revision identifiers, used by Alembic.
revision = "911049796159"
down_revision = "408aac572bff"
branch_labels = None
depends_on = None
def upgrade() -> None:
"""Apply the current migration."""
# ### commands auto generated by Alembic - please adjust! ###
op.drop_column("users", "opt_out")
# ### end Alembic commands ###
def downgrade() -> None:
"""Revert the current migration."""
# ### commands auto generated by Alembic - please adjust! ###
op.add_column("users", sa.Column("opt_out", sa.BOOLEAN(), autoincrement=False, nullable=True))
# ### end Alembic commands ###
|