3 Revision ID: adad68a5e370
5 Create Date: 2018-06-02 18:23:18.123340
9 import sqlalchemy as sa
12 # revision identifiers, used by Alembic.
13 revision = 'adad68a5e370'
14 down_revision = 'd0bec9e5698e'
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')
31 # ### end Alembic commands ###
35 # ### commands auto generated by Alembic - please adjust! ###
36 op.drop_table('krock_forum_topic')
37 # ### end Alembic commands ###