]> git.lizzy.rs Git - cheatdb.git/blob - migrations/versions/9832944cd1e4_.py
Fix migration error when migrating from scratch
[cheatdb.git] / migrations / versions / 9832944cd1e4_.py
1 """empty message
2
3 Revision ID: 9832944cd1e4
4 Revises: 838081950f27
5 Create Date: 2020-07-15 15:00:45.440381
6
7 """
8 from alembic import op
9 import sqlalchemy as sa
10
11
12 # revision identifiers, used by Alembic.
13 revision = '9832944cd1e4'
14 down_revision = '838081950f27'
15 branch_labels = None
16 depends_on = None
17
18
19 def upgrade():
20     # ### commands auto generated by Alembic - please adjust! ###
21     op.alter_column('thread_reply', 'comment',
22                existing_type=sa.VARCHAR(length=500),
23                type_=sa.String(length=2000),
24                existing_nullable=False)
25     # ### end Alembic commands ###
26
27
28 def downgrade():
29     # ### commands auto generated by Alembic - please adjust! ###
30     op.alter_column('thread_reply', 'comment',
31                existing_type=sa.String(length=2000),
32                type_=sa.VARCHAR(length=500),
33                existing_nullable=False)
34     # ### end Alembic commands ###