fixing schema in migration file

This commit is contained in:
Cayo Puigdefabregas 2021-06-15 14:29:38 +02:00
parent b1f7b629c7
commit 1e05f600a7

View file

@ -167,7 +167,8 @@ def upgrade():
),
sa.ForeignKeyConstraint(['lot_id'], ['lot.id'],),
sa.ForeignKeyConstraint(['owner_id'], ['common.user.id'],),
sa.PrimaryKeyConstraint('id')
sa.PrimaryKeyConstraint('id'),
schema=f'{get_inv()}'
)
op.create_index('document_id', 'trade_document', ['id'], unique=False, postgresql_using='hash')
op.create_index(op.f('ix_trade_document_created'), 'trade_document', ['created'], unique=False)