37 lines
1.1 KiB
Python
37 lines
1.1 KiB
Python
"""add_signature_id
|
|
|
|
Revision ID: b029d2f5a0c7
|
|
Revises: fb6810c36ffb
|
|
Create Date: 2026-04-14 14:59:09.399640
|
|
|
|
"""
|
|
from typing import Sequence, Union
|
|
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision: str = 'b029d2f5a0c7'
|
|
down_revision: Union[str, None] = 'fb6810c36ffb'
|
|
branch_labels: Union[str, Sequence[str], None] = None
|
|
depends_on: Union[str, Sequence[str], None] = None
|
|
|
|
|
|
def upgrade() -> None:
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
with op.batch_alter_table('signing_requests', schema=None) as batch_op:
|
|
batch_op.add_column(sa.Column('signature_id', sa.String(length=128), nullable=True))
|
|
batch_op.create_index(batch_op.f('ix_signing_requests_signature_id'), ['signature_id'], unique=False)
|
|
|
|
# ### end Alembic commands ###
|
|
|
|
|
|
def downgrade() -> None:
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
with op.batch_alter_table('signing_requests', schema=None) as batch_op:
|
|
batch_op.drop_index(batch_op.f('ix_signing_requests_signature_id'))
|
|
batch_op.drop_column('signature_id')
|
|
|
|
# ### end Alembic commands ###
|