<gh_stars>100-1000
"""LikeTopic

Revision ID: <KEY>
Revises: <KEY>
Create Date: 2013-12-12 12:35:12.253544

"""

# revision identifiers, used by Alembic.
revision = '<KEY>'
down_revision = '<KEY>'

from alembic import op
import sqlalchemy as sa


def upgrade():
    op.create_table(
        'like_topic',
        sa.Column('id', sa.Integer(), nullable=False),
        sa.Column('account_id', sa.Integer(), nullable=False),
        sa.Column('topic_id', sa.Integer(), nullable=False),
        sa.Column('created', sa.DateTime(), nullable=True),
        sa.PrimaryKeyConstraint('id'),
        sa.UniqueConstraint(
            'account_id', 'topic_id', name='uc_account_like_topic'
        )
    )


def downgrade():
    op.drop_table('like_topic')

"""LikeTopic

Revision ID: <KEY>
Revises: <KEY>
Create Date: 2013-12-12 12:35:12.253544

"""

# revision identifiers, used by Alembic.
revision = '<KEY>'
down_revision = '<KEY>'

from alembic import op
import sqlalchemy as sa


def upgrade():
    op.create_table(
        'like_topic',
        sa.Column('id', sa.Integer(), nullable=False),
        sa.Column('account_id', sa.Integer(), nullable=False),
        sa.Column('topic_id', sa.Integer(), nullable=False),
        sa.Column('created', sa.DateTime(), nullable=True),
        sa.PrimaryKeyConstraint('id'),
        sa.UniqueConstraint(
            'account_id', 'topic_id', name='uc_account_like_topic'
        )
    )


def downgrade():
    op.drop_table('like_topic')
LikeTopic  Revision ID: <KEY> Revises: <KEY> Create Date: 2013-12-12 12:35:12.253544 # revision identifiers, used by Alembic.