diff --git a/migrations/versions/26-MyECLPay.py b/migrations/versions/26-MyECLPay.py index a30016469..052783286 100644 --- a/migrations/versions/26-MyECLPay.py +++ b/migrations/versions/26-MyECLPay.py @@ -112,6 +112,10 @@ def upgrade() -> None: ["wallet_id"], ["myeclpay_wallet.id"], ), + sa.ForeignKeyConstraint( + ["approver_user_id"], + ["core_user.id"], + ), sa.PrimaryKeyConstraint("id"), ) op.create_table( @@ -162,6 +166,10 @@ def upgrade() -> None: ["store_id"], ["myeclpay_store.id"], ), + sa.ForeignKeyConstraint( + ["user_id"], + ["core_user.id"], + ), sa.PrimaryKeyConstraint("user_id", "store_id"), ) op.create_table(