diff options
author | 2020-08-25 19:57:57 +0100 | |
---|---|---|
committer | 2020-08-25 19:57:57 +0100 | |
commit | c4ea4f0f5474a3e28e47adb7b306fb40cc68157a (patch) | |
tree | 0c65994f78eda3e92eeb3d642b5f0b229d9d0af7 /alembic | |
parent | Linting (diff) |
Add in_guild column to represent membership
Diffstat (limited to 'alembic')
-rw-r--r-- | alembic/versions/5683123ff89a_add_in_guild_column.py | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/alembic/versions/5683123ff89a_add_in_guild_column.py b/alembic/versions/5683123ff89a_add_in_guild_column.py new file mode 100644 index 0000000..12d67a1 --- /dev/null +++ b/alembic/versions/5683123ff89a_add_in_guild_column.py @@ -0,0 +1,28 @@ +"""add in_guild column + +Revision ID: 5683123ff89a +Revises: 2743389eb63e +Create Date: 2020-08-25 19:57:41.958297 + +""" +from alembic import op +import sqlalchemy as sa + + +# revision identifiers, used by Alembic. +revision = '5683123ff89a' +down_revision = '2743389eb63e' +branch_labels = None +depends_on = None + + +def upgrade(): + # ### commands auto generated by Alembic - please adjust! ### + op.add_column('users', sa.Column('in_guild', sa.Boolean(), nullable=True)) + # ### end Alembic commands ### + + +def downgrade(): + # ### commands auto generated by Alembic - please adjust! ### + op.drop_column('users', 'in_guild') + # ### end Alembic commands ### |