From 1e05f600a76d52fab22bc2fad08dff933b9e4a17 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Tue, 15 Jun 2021 14:29:38 +0200 Subject: [PATCH] fixing schema in migration file --- .../migrations/versions/51439cf24be8_change_trade_action.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ereuse_devicehub/migrations/versions/51439cf24be8_change_trade_action.py b/ereuse_devicehub/migrations/versions/51439cf24be8_change_trade_action.py index faa88ab8..32a05b31 100644 --- a/ereuse_devicehub/migrations/versions/51439cf24be8_change_trade_action.py +++ b/ereuse_devicehub/migrations/versions/51439cf24be8_change_trade_action.py @@ -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)