<reponame>apwao/Pitcher<gh_stars>0
"""Modify relationship between user and pitches

Revision ID: <KEY>
Revises: <PASSWORD>
Create Date: 2019-05-27 04:57:27.727909

"""
from alembic import op
import sqlalchemy as sa


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


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_constraint('comments_user_id_fkey', 'comments', type_='foreignkey')
    op.create_foreign_key(None, 'comments', 'users', ['user_id'], ['id'])
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_constraint(None, 'comments', type_='foreignkey')
    op.create_foreign_key('comments_user_id_fkey', 'comments', 'comments', ['user_id'], ['id'])
    # ### end Alembic commands ###

"""Modify relationship between user and pitches

Revision ID: <KEY>
Revises: <PASSWORD>
Create Date: 2019-05-27 04:57:27.727909

"""
from alembic import op
import sqlalchemy as sa


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


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_constraint('comments_user_id_fkey', 'comments', type_='foreignkey')
    op.create_foreign_key(None, 'comments', 'users', ['user_id'], ['id'])
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_constraint(None, 'comments', type_='foreignkey')
    op.create_foreign_key('comments_user_id_fkey', 'comments', 'comments', ['user_id'], ['id'])
    # ### end Alembic commands ###
Modify relationship between user and pitches  Revision ID: <KEY> Revises: <PASSWORD> Create Date: 2019-05-27 04:57:27.727909 # 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 ###