From e607172d2d2e9a974a529b56810764f5cef63409 Mon Sep 17 00:00:00 2001 From: armanddidierjean <95971503+armanddidierjean@users.noreply.github.com> Date: Sun, 1 Dec 2024 10:21:23 +0100 Subject: [PATCH] Fix migration --- migrations/versions/26-MyECLPay.py | 8 ++++++++ 1 file changed, 8 insertions(+) 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(