mirror of
https://github.com/minetest/contentdb.git
synced 2024-11-14 11:33:51 +01:00
38 lines
1.1 KiB
Python
38 lines
1.1 KiB
Python
"""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 ###
|