diff options
| author | rubenwardy <rw@rubenwardy.com> | 2020-07-17 22:08:34 +0100 |
|---|---|---|
| committer | rubenwardy <rw@rubenwardy.com> | 2020-07-17 22:08:34 +0100 |
| commit | 2a7318eca205f40c35c51d3bf7c89dc9f2b635f8 (patch) | |
| tree | 66538a4511781bc5c2b11df804634a525c4e83b5 /migrations | |
| parent | b067fd2e773409790cb86cff1f799ad1563ea480 (diff) | |
| download | cheatdb-2a7318eca205f40c35c51d3bf7c89dc9f2b635f8.tar.xz | |
Add descriptions to tags, and show in multiselect
Diffstat (limited to 'migrations')
| -rw-r--r-- | migrations/versions/3a24fc02365e_.py | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/migrations/versions/3a24fc02365e_.py b/migrations/versions/3a24fc02365e_.py new file mode 100644 index 0000000..4e85f9b --- /dev/null +++ b/migrations/versions/3a24fc02365e_.py @@ -0,0 +1,28 @@ +"""empty message + +Revision ID: 3a24fc02365e +Revises: b370c3eb4227 +Create Date: 2020-07-17 20:58:31.130449 + +""" +from alembic import op +import sqlalchemy as sa + + +# revision identifiers, used by Alembic. +revision = '3a24fc02365e' +down_revision = 'b370c3eb4227' +branch_labels = None +depends_on = None + + +def upgrade(): + # ### commands auto generated by Alembic - please adjust! ### + op.add_column('tag', sa.Column('description', sa.String(length=500), nullable=True, server_default=None)) + # ### end Alembic commands ### + + +def downgrade(): + # ### commands auto generated by Alembic - please adjust! ### + op.drop_column('tag', 'description') + # ### end Alembic commands ### |
