37 lines
1.0 KiB
Python
37 lines
1.0 KiB
Python
"""empty message
|
|
|
|
Revision ID: 32268fce88c5
|
|
Revises: 1595751865c1
|
|
Create Date: 2026-07-17 16:31:01.794850
|
|
|
|
"""
|
|
from typing import Sequence, Union
|
|
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision: str = '32268fce88c5'
|
|
down_revision: Union[str, Sequence[str], None] = '1595751865c1'
|
|
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! ###
|
|
with op.batch_alter_table('captchas', schema=None) as batch_op:
|
|
batch_op.drop_index(batch_op.f('ix_captchas_captcha'))
|
|
|
|
# ### end Alembic commands ###
|
|
|
|
|
|
def downgrade() -> None:
|
|
"""Downgrade schema."""
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
with op.batch_alter_table('captchas', schema=None) as batch_op:
|
|
batch_op.create_index(batch_op.f('ix_captchas_captcha'), ['captcha'], unique=False)
|
|
|
|
# ### end Alembic commands ###
|