This repository has been archived on 2020-03-24. You can view files and clone it, but cannot push or open issues or pull requests.
quay/data/migrations/versions/a3002f7638d5_adding_in_messages_table.py

26 lines
655 B
Python

"""Adding in messages table
Revision ID: a3002f7638d5
Revises: c9b91bee7554
Create Date: 2016-10-07 11:14:15.054546
"""
# revision identifiers, used by Alembic.
revision = 'a3002f7638d5'
down_revision = 'c9b91bee7554'
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import mysql
def upgrade(tables):
op.create_table('messages',
sa.Column("id", sa.INTEGER, primary_key=True),
sa.Column("content", sa.UnicodeText, nullable=False),
sa.PrimaryKeyConstraint('id', name=op.f('pk_messages'))
)
def downgrade(tables):
op.drop_table('messages')