<gh_stars>0
"""add downvote virtual table to user and pitch tables

Revision ID: 9c992dcfe18a
Revises: <PASSWORD>
Create Date: 2021-04-26 21:06:41.441701

"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = '<KEY>'
down_revision = '<PASSWORD>'
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.create_unique_constraint(None, 'downvotes', ['id'])
    op.create_unique_constraint(None, 'upvotes', ['id'])
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_constraint(None, 'upvotes', type_='unique')
    op.drop_constraint(None, 'downvotes', type_='unique')
    # ### end Alembic commands ###

"""add downvote virtual table to user and pitch tables

Revision ID: 9c992dcfe18a
Revises: <PASSWORD>
Create Date: 2021-04-26 21:06:41.441701

"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = '<KEY>'
down_revision = '<PASSWORD>'
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.create_unique_constraint(None, 'downvotes', ['id'])
    op.create_unique_constraint(None, 'upvotes', ['id'])
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_constraint(None, 'upvotes', type_='unique')
    op.drop_constraint(None, 'downvotes', type_='unique')
    # ### end Alembic commands ###
add downvote virtual table to user and pitch tables  Revision ID: 9c992dcfe18a Revises: <PASSWORD> Create Date: 2021-04-26 21:06:41.441701 # revision identifiers, used by Alembic. # ### commands auto generated by Alembic - please adjust! ### # ### end Alembic commands ### # ### commands auto generated by Alembic - please adjust! ### # ### end Alembic commands ###