From eb52c39ca3cbbfca02c547ae7938ca2a8610b1ae Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Mon, 7 Jun 2021 15:45:48 +0200 Subject: [PATCH] fixing migrations --- .../migrations/versions/51439cf24be8_change_trade_action.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ereuse_devicehub/migrations/versions/51439cf24be8_change_trade_action.py b/ereuse_devicehub/migrations/versions/51439cf24be8_change_trade_action.py index 59a8e07d..95eb7ab6 100644 --- a/ereuse_devicehub/migrations/versions/51439cf24be8_change_trade_action.py +++ b/ereuse_devicehub/migrations/versions/51439cf24be8_change_trade_action.py @@ -58,6 +58,8 @@ def upgrade(): sa.Column('user_to_id', postgresql.UUID(as_uuid=True), nullable=False), sa.Column('document_id', citext.CIText(), nullable=True), sa.Column('confirm', sa.Boolean(), nullable=True), + sa.Column('code', citext.CIText(), default='', nullable=True, + comment = "This code is used for traceability"), sa.ForeignKeyConstraint(['id'], [f'{get_inv()}.action.id'], ), sa.ForeignKeyConstraint(['user_from_id'], ['common.user.id'], ), sa.ForeignKeyConstraint(['user_to_id'], ['common.user.id'], ),