Skip to content

Commit

Permalink
migration file
Browse files Browse the repository at this point in the history
Signed-off-by: Kial Jinnah <kialjinnah@gmail.com>
  • Loading branch information
kialj876 committed Feb 9, 2023
1 parent ea08bad commit e78cd3d
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions pay-api/migrations/versions/2023_02_08_inv_ref_indexes.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
"""empty message
Revision ID: e296910623cd
Revises: 286acad5d366
Create Date: 2023-02-07 12:17:04.806485
"""
from alembic import op
import sqlalchemy as sa
from time import sleep


# revision identifiers, used by Alembic.
revision = 'e296910623cd'
down_revision = '286acad5d366'
branch_labels = None
depends_on = None


def upgrade():
op.execute("set statement_timeout=20000;")
# ### commands auto generated by Alembic - please adjust! ###
op.create_index(op.f('ix_invoice_references_invoice_id'), 'invoice_references', ['invoice_id'], unique=False)
op.create_index(op.f('ix_invoice_references_status_code'), 'invoice_references', ['status_code'], unique=False)
# ### end Alembic commands ###


def downgrade():
op.execute("set statement_timeout=20000;")
# ### commands auto generated by Alembic - please adjust! ###
op.drop_index(op.f('ix_invoice_references_status_code'), table_name='invoice_references')
op.drop_index(op.f('ix_invoice_references_invoice_id'), table_name='invoice_references')
# ### end Alembic commands ###

0 comments on commit e78cd3d

Please sign in to comment.