Skip to content

Commit

Permalink
Remove index
Browse files Browse the repository at this point in the history
  • Loading branch information
seeker25 committed Nov 30, 2023
1 parent 7acc08c commit 2f5f2bf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions pay-api/migrations/versions/2023_11_30_49eaec3210e0_.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@

def upgrade():
op.add_column('ejv_invoice_links', sa.Column('sequence', sa.Integer(), nullable=True))
op.create_index(op.f('ix_ejv_invoice_links_sequence'), 'ejv_invoice_links', ['sequence'], unique=False)


def downgrade():
op.drop_index(op.f('ix_ejv_invoice_links_sequence'), table_name='ejv_invoice_links')
op.drop_column('ejv_invoice_links', 'sequence')
2 changes: 1 addition & 1 deletion pay-api/src/pay_api/models/ejv_invoice_link.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,4 @@ class EjvInvoiceLink(BaseModel): # pylint: disable=too-few-public-methods
ejv_header_id = db.Column(db.Integer, ForeignKey('ejv_headers.id'), nullable=False)
disbursement_status_code = db.Column(db.String(20), ForeignKey('disbursement_status_codes.code'), nullable=True)
message = db.Column('message', db.String, nullable=True, index=False)
sequence = db.Column(db.Integer, nullable=True, index=True)
sequence = db.Column(db.Integer, nullable=True)

0 comments on commit 2f5f2bf

Please sign in to comment.