diff options
| author | rubenwardy <rw@rubenwardy.com> | 2018-05-26 01:58:56 +0100 |
|---|---|---|
| committer | rubenwardy <rw@rubenwardy.com> | 2018-05-26 01:58:56 +0100 |
| commit | ef0a32524e83d73ac5234ef5765d54b9348e52bf (patch) | |
| tree | 3b77734a9add3b69bc1dc991d56cb5157bfe47b4 /migrations | |
| parent | 2abcd8ee474e0f98c54af8bfe6fb40979f3b18ba (diff) | |
| download | cheatdb-ef0a32524e83d73ac5234ef5765d54b9348e52bf.tar.xz | |
Add banning
Fixes #13
Diffstat (limited to 'migrations')
| -rw-r--r-- | migrations/versions/ea5a023711e0_.py | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/migrations/versions/ea5a023711e0_.py b/migrations/versions/ea5a023711e0_.py new file mode 100644 index 0000000..4596be5 --- /dev/null +++ b/migrations/versions/ea5a023711e0_.py @@ -0,0 +1,29 @@ +"""empty message + +Revision ID: ea5a023711e0 +Revises: fa12fadbdb40 +Create Date: 2018-05-26 01:55:09.745881 + +""" +from alembic import op +import sqlalchemy as sa + + +# revision identifiers, used by Alembic. +revision = 'ea5a023711e0' +down_revision = 'fa12fadbdb40' +branch_labels = None +depends_on = None + + +def upgrade(): + # ### commands auto generated by Alembic - please adjust! ### + conn = op.get_bind() + conn.execute("ALTER TYPE userrank ADD VALUE 'BANNED'") + # ### end Alembic commands ### + + +def downgrade(): + # ### commands auto generated by Alembic - please adjust! ### + pass + # ### end Alembic commands ### |
