"""Correct usages relationship error in EntitlementsDomain

Revision ID: 638c4718005d
Revises: 26e20f27d399
Create Date: 2025-05-13 16:24:10.469700

"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = '638c4718005d'
down_revision = '26e20f27d399'
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    with op.batch_alter_table('license_usage', schema=None) as batch_op:
        batch_op.drop_constraint('license_usage_license_id_fkey', type_='foreignkey')
        batch_op.drop_column('license_id')
        batch_op.drop_column('period_end_date')
        batch_op.drop_column('period_start_date')

    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    pass
    # ### end Alembic commands ###
