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)