fixing schema in migration file
This commit is contained in:
parent
b1f7b629c7
commit
1e05f600a7
|
@ -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)
|
||||
|
|
Reference in a new issue