aboutsummaryrefslogtreecommitdiffstats
path: root/alembic/versions/45973dacf7da_add_public_flags_column.py
blob: e5fa5a482902e03b7b0e5b21dea153eee91cdea0 (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
"""
Add public flags column.

Revision ID: 45973dacf7da
Revises: 451f61f7f7cb
Create Date: 2020-09-02 10:38:18.142271

"""
import sqlalchemy as sa

from alembic import op

# revision identifiers, used by Alembic.
revision = "45973dacf7da"
down_revision = "451f61f7f7cb"
branch_labels = None
depends_on = None


def upgrade() -> None:
    """Apply the current migration."""
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column("users", sa.Column("public_flags", sa.JSON(), nullable=True))
    # ### end Alembic commands ###


def downgrade() -> None:
    """Revert the current migration."""
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_column("users", "public_flags")
    # ### end Alembic commands ###