aboutsummaryrefslogtreecommitdiff
path: root/migrations
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2018-06-02 18:22:57 +0100
committerrubenwardy <rw@rubenwardy.com>2018-06-02 18:26:17 +0100
commit70afb94d3b985e314ff1f922294875e43c56fefc (patch)
tree6743df30af1b00f5ed457155bbca0724f639c97d /migrations
parent8984adaa728c6c1c9bafb8c1ba5ea227bb17aa5b (diff)
downloadcheatdb-70afb94d3b985e314ff1f922294875e43c56fefc.tar.xz
Add topics todo list based on forum parser
Diffstat (limited to 'migrations')
-rw-r--r--migrations/versions/adad68a5e370_.py37
1 files changed, 37 insertions, 0 deletions
diff --git a/migrations/versions/adad68a5e370_.py b/migrations/versions/adad68a5e370_.py
new file mode 100644
index 0000000..9773979
--- /dev/null
+++ b/migrations/versions/adad68a5e370_.py
@@ -0,0 +1,37 @@
+"""empty message
+
+Revision ID: adad68a5e370
+Revises: d0bec9e5698e
+Create Date: 2018-06-02 18:23:18.123340
+
+"""
+from alembic import op
+import sqlalchemy as sa
+
+
+# revision identifiers, used by Alembic.
+revision = 'adad68a5e370'
+down_revision = 'd0bec9e5698e'
+branch_labels = None
+depends_on = None
+
+
+def upgrade():
+ # ### commands auto generated by Alembic - please adjust! ###
+ op.create_table('krock_forum_topic',
+ sa.Column('topic_id', sa.Integer(), autoincrement=False, nullable=False),
+ sa.Column('author_id', sa.Integer(), nullable=False),
+ sa.Column('ttype', sa.Integer(), nullable=False),
+ sa.Column('title', sa.String(length=200), nullable=False),
+ sa.Column('name', sa.String(length=30), nullable=True),
+ sa.Column('link', sa.String(length=50), nullable=True),
+ sa.ForeignKeyConstraint(['author_id'], ['user.id'], ),
+ sa.PrimaryKeyConstraint('topic_id')
+ )
+ # ### end Alembic commands ###
+
+
+def downgrade():
+ # ### commands auto generated by Alembic - please adjust! ###
+ op.drop_table('krock_forum_topic')
+ # ### end Alembic commands ###