Source

crosswiki / alembic / versions / 1d70afe28535.py

Full commit
"""empty message

Revision ID: 1d70afe28535
Revises: None
Create Date: 2012-01-20 21:31:52.859057

"""

# downgrade revision identifier, used by Alembic.
down_revision = None

from alembic import op
import sqlalchemy as sa


def upgrade():
    ### commands auto generated by Alembic - please adjust! ###
    op.create_table('pages',
    sa.Column('id', sa.Integer(), nullable=False),
    sa.Column('page_name', sa.Unicode(length=255), nullable=True, unique=True),
    sa.Column('content', sa.UnicodeText(), nullable=True),
    sa.PrimaryKeyConstraint('id')
    )
    ### end Alembic commands ###

def downgrade():
    ### commands auto generated by Alembic - please adjust! ###
    op.drop_table('pages')
    ### end Alembic commands ###