diff --git a/pay-api/migrations/versions/2023_11_30_49eaec3210e0_.py b/pay-api/migrations/versions/2023_11_30_49eaec3210e0_.py index 515bbf889..a642a5785 100644 --- a/pay-api/migrations/versions/2023_11_30_49eaec3210e0_.py +++ b/pay-api/migrations/versions/2023_11_30_49eaec3210e0_.py @@ -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') diff --git a/pay-api/src/pay_api/models/ejv_invoice_link.py b/pay-api/src/pay_api/models/ejv_invoice_link.py index 1e6bad30b..ba7d10471 100644 --- a/pay-api/src/pay_api/models/ejv_invoice_link.py +++ b/pay-api/src/pay_api/models/ejv_invoice_link.py @@ -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)