diff options
author | 2020-09-02 10:38:27 +0100 | |
---|---|---|
committer | 2020-09-02 10:38:27 +0100 | |
commit | b64f0e3aea9f1a8ccf4b89e09d57d8e5653726fd (patch) | |
tree | 1880d4141f9a9daa6262006f2a019ba9941bb850 | |
parent | Store public flags (diff) |
public_flags migration
-rw-r--r-- | alembic/versions/45973dacf7da_add_public_flags_column.py | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/alembic/versions/45973dacf7da_add_public_flags_column.py b/alembic/versions/45973dacf7da_add_public_flags_column.py new file mode 100644 index 0000000..06c7338 --- /dev/null +++ b/alembic/versions/45973dacf7da_add_public_flags_column.py @@ -0,0 +1,28 @@ +"""Add public flags column + +Revision ID: 45973dacf7da +Revises: 451f61f7f7cb +Create Date: 2020-09-02 10:38:18.142271 + +""" +from alembic import op +import sqlalchemy as sa + + +# revision identifiers, used by Alembic. +revision = '45973dacf7da' +down_revision = '451f61f7f7cb' +branch_labels = None +depends_on = None + + +def upgrade(): + # ### commands auto generated by Alembic - please adjust! ### + op.add_column('users', sa.Column('public_flags', sa.JSON(), nullable=True)) + # ### end Alembic commands ### + + +def downgrade(): + # ### commands auto generated by Alembic - please adjust! ### + op.drop_column('users', 'public_flags') + # ### end Alembic commands ### |