]> git.lizzy.rs Git - cheatdb.git/blob - migrations/versions/adad68a5e370_.py
Add topics todo list based on forum parser
[cheatdb.git] / migrations / versions / adad68a5e370_.py
1 """empty message
2
3 Revision ID: adad68a5e370
4 Revises: d0bec9e5698e
5 Create Date: 2018-06-02 18:23:18.123340
6
7 """
8 from alembic import op
9 import sqlalchemy as sa
10
11
12 # revision identifiers, used by Alembic.
13 revision = 'adad68a5e370'
14 down_revision = 'd0bec9e5698e'
15 branch_labels = None
16 depends_on = None
17
18
19 def upgrade():
20     # ### commands auto generated by Alembic - please adjust! ###
21     op.create_table('krock_forum_topic',
22     sa.Column('topic_id', sa.Integer(), autoincrement=False, nullable=False),
23     sa.Column('author_id', sa.Integer(), nullable=False),
24     sa.Column('ttype', sa.Integer(), nullable=False),
25     sa.Column('title', sa.String(length=200), nullable=False),
26     sa.Column('name', sa.String(length=30), nullable=True),
27     sa.Column('link', sa.String(length=50), nullable=True),
28     sa.ForeignKeyConstraint(['author_id'], ['user.id'], ),
29     sa.PrimaryKeyConstraint('topic_id')
30     )
31     # ### end Alembic commands ###
32
33
34 def downgrade():
35     # ### commands auto generated by Alembic - please adjust! ###
36     op.drop_table('krock_forum_topic')
37     # ### end Alembic commands ###