1
0
mirror of synced 2024-12-11 22:15:59 +01:00
bemaniutils/bemani/data/migrations/versions/6c3db80175f1_adding_news_table.py

36 lines
885 B
Python
Raw Normal View History

"""Adding news table.
Revision ID: 6c3db80175f1
Revises: 691d49925c52
Create Date: 2016-12-07 22:39:53.768438
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '6c3db80175f1'
down_revision = '691d49925c52'
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.create_table('news',
sa.Column('id', sa.Integer(), nullable=False),
sa.Column('timestamp', sa.Integer(), nullable=False),
sa.Column('title', sa.String(length=255), nullable=False),
sa.Column('body', sa.Text(), nullable=False),
sa.PrimaryKeyConstraint('id'),
mysql_charset='utf8mb4'
)
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_table('news')
# ### end Alembic commands ###