"""i literally hate sql Revision ID: 0f534237fc90 Revises: cf61f006db46 Create Date: 2025-04-25 16:59:07.177958 """ from typing import Sequence, Union from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision: str = '0f534237fc90' down_revision: Union[str, None] = 'cf61f006db46' branch_labels: Union[str, Sequence[str], None] = None depends_on: Union[str, Sequence[str], None] = None def upgrade() -> None: """Upgrade schema.""" # ### commands auto generated by Alembic - please adjust! ### op.drop_constraint('uq_sku_mtgjson_uuid', 'mtgjson_skus', type_='unique') op.drop_index('ix_mtgjson_skus_mtgjson_uuid', table_name='mtgjson_skus') op.create_index(op.f('ix_mtgjson_skus_mtgjson_uuid'), 'mtgjson_skus', ['mtgjson_uuid'], unique=False) # ### end Alembic commands ### def downgrade() -> None: """Downgrade schema.""" # ### commands auto generated by Alembic - please adjust! ### op.drop_index(op.f('ix_mtgjson_skus_mtgjson_uuid'), table_name='mtgjson_skus') op.create_index('ix_mtgjson_skus_mtgjson_uuid', 'mtgjson_skus', ['mtgjson_uuid'], unique=True) op.create_unique_constraint('uq_sku_mtgjson_uuid', 'mtgjson_skus', ['mtgjson_uuid']) # ### end Alembic commands ###