Skip to content

Commit

Permalink
Fix migration
Browse files Browse the repository at this point in the history
  • Loading branch information
armanddidierjean authored and Rotheem committed Jan 3, 2025
1 parent 8617b55 commit 65aa4f4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions migrations/versions/26-MyECLPay.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 65aa4f4

Please sign in to comment.