"""empty message

Revision ID: d30568c05df2
Revises: <PASSWORD>
Create Date: 2021-09-20 23:02:59.634961

"""
from alembic import op
import sqlalchemy as sa


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


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.create_unique_constraint(None, 'attorneys', ['name', 'district_id'])
    op.create_unique_constraint(None, 'courtrooms', ['name', 'district_id'])
    op.create_unique_constraint(None, 'defendants', [
                                'first_name', 'middle_name', 'last_name', 'suffix', 'address', 'district_id'])
    op.create_unique_constraint(None, 'districts', ['name'])
    op.create_unique_constraint(None, 'judges', ['name', 'district_id'])
    op.create_unique_constraint(None, 'plaintiffs', ['name', 'district_id'])
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_constraint(None, 'plaintiffs', type_='unique')
    op.drop_constraint(None, 'judges', type_='unique')
    op.drop_constraint(None, 'districts', type_='unique')
    op.drop_constraint(None, 'defendants', type_='unique')
    op.drop_constraint(None, 'courtrooms', type_='unique')
    op.drop_constraint(None, 'attorneys', type_='unique')
    # ### end Alembic commands ###

"""empty message

Revision ID: d30568c05df2
Revises: <PASSWORD>
Create Date: 2021-09-20 23:02:59.634961

"""
from alembic import op
import sqlalchemy as sa


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


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.create_unique_constraint(None, 'attorneys', ['name', 'district_id'])
    op.create_unique_constraint(None, 'courtrooms', ['name', 'district_id'])
    op.create_unique_constraint(None, 'defendants', [
                                'first_name', 'middle_name', 'last_name', 'suffix', 'address', 'district_id'])
    op.create_unique_constraint(None, 'districts', ['name'])
    op.create_unique_constraint(None, 'judges', ['name', 'district_id'])
    op.create_unique_constraint(None, 'plaintiffs', ['name', 'district_id'])
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_constraint(None, 'plaintiffs', type_='unique')
    op.drop_constraint(None, 'judges', type_='unique')
    op.drop_constraint(None, 'districts', type_='unique')
    op.drop_constraint(None, 'defendants', type_='unique')
    op.drop_constraint(None, 'courtrooms', type_='unique')
    op.drop_constraint(None, 'attorneys', type_='unique')
    # ### end Alembic commands ###

empty message  Revision ID: d30568c05df2 Revises: <PASSWORD> Create Date: 2021-09-20 23:02:59.634961 # 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 ###