"""empty message

Revision ID: c43ffe7b4001
Revises: ba<PASSWORD>
Create Date: 2021-04-20 14:54:17.170811

"""
from alembic import op
import sqlalchemy as sa


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


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


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

"""empty message

Revision ID: c43ffe7b4001
Revises: ba<PASSWORD>
Create Date: 2021-04-20 14:54:17.170811

"""
from alembic import op
import sqlalchemy as sa


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


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


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

empty message  Revision ID: c43ffe7b4001 Revises: ba<PASSWORD> Create Date: 2021-04-20 14:54:17.170811 # 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 ###