From ccbe67a34c210e8a2abf8daa8c6d9c05df92e1a0 Mon Sep 17 00:00:00 2001 From: lin <642018748@qq.com> Date: Mon, 27 Feb 2023 19:37:51 +0800 Subject: [PATCH] fix card --- .../src/main/resources/db/migration/V2023022800001__card.sql | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mallinkAdmin/src/main/resources/db/migration/V2023022800001__card.sql b/mallinkAdmin/src/main/resources/db/migration/V2023022800001__card.sql index d691ad02e..5a916d18f 100644 --- a/mallinkAdmin/src/main/resources/db/migration/V2023022800001__card.sql +++ b/mallinkAdmin/src/main/resources/db/migration/V2023022800001__card.sql @@ -13,6 +13,9 @@ alter table wx_card_info add column status int(1) not null default 0 comment ' #update wx_card_info ci left join wx_coupon_order_89 co on ci.id = co.id #set ci.c_user_id = co.c_user_id, ci.owner_user_id = co.owner_id +#update wx_card_info ci left join wx_coupon_password cp on ci.id = cp.card_id +#set ci.coupon_password_id = cp.id where cp.card_id is not null + alter table wx_coupon_password add column is_stop int(1) not null default 0 comment '是否已停止1-是,0-否';