diff options
| author | rubenwardy <rw@rubenwardy.com> | 2020-07-11 01:34:51 +0100 |
|---|---|---|
| committer | rubenwardy <rw@rubenwardy.com> | 2020-07-11 01:42:47 +0100 |
| commit | bf927c50f00bd15c7bc1765b7d5fb0c6a6abeb86 (patch) | |
| tree | ff27c709826ce17002e1d670938b5a6142608695 /migrations | |
| parent | 5f7be4b4337358e35c9eda4b261260a08a958b4a (diff) | |
| download | cheatdb-bf927c50f00bd15c7bc1765b7d5fb0c6a6abeb86.tar.xz | |
Add the ability to lock threads
Diffstat (limited to 'migrations')
| -rw-r--r-- | migrations/versions/8679442b8dde_.py | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/migrations/versions/8679442b8dde_.py b/migrations/versions/8679442b8dde_.py new file mode 100644 index 0000000..337d0fc --- /dev/null +++ b/migrations/versions/8679442b8dde_.py @@ -0,0 +1,28 @@ +"""empty message + +Revision ID: 8679442b8dde +Revises: f612e293070a +Create Date: 2020-07-11 00:14:02.330903 + +""" +from alembic import op +import sqlalchemy as sa + + +# revision identifiers, used by Alembic. +revision = '8679442b8dde' +down_revision = 'f612e293070a' +branch_labels = None +depends_on = None + + +def upgrade(): + # ### commands auto generated by Alembic - please adjust! ### + op.add_column('thread', sa.Column('locked', sa.Boolean(), server_default='0', nullable=False)) + # ### end Alembic commands ### + + +def downgrade(): + # ### commands auto generated by Alembic - please adjust! ### + op.drop_column('thread', 'locked') + # ### end Alembic commands ### |
