feat: db upgrade sql
This commit is contained in:
7
sql/upgrade/1.0.7/upgrade.sql
Normal file
7
sql/upgrade/1.0.7/upgrade.sql
Normal file
@@ -0,0 +1,7 @@
|
||||
SET NAMES utf8mb4;
|
||||
SET FOREIGN_KEY_CHECKS = 0;
|
||||
|
||||
ALTER TABLE `wfc_user_db`.`u_user`
|
||||
ADD COLUMN `birth_date` date NULL COMMENT '出生日期' AFTER `age`;
|
||||
|
||||
SET FOREIGN_KEY_CHECKS = 1;
|
||||
16
sql/upgrade/1.0.8/upgrade.sql
Normal file
16
sql/upgrade/1.0.8/upgrade.sql
Normal file
@@ -0,0 +1,16 @@
|
||||
SET NAMES utf8mb4;
|
||||
SET FOREIGN_KEY_CHECKS = 0;
|
||||
|
||||
DROP TABLE IF EXISTS `wfc_user_db`.`u_alipay_order`;
|
||||
|
||||
DROP TABLE IF EXISTS `wfc_user_db`.`u_balance`;
|
||||
|
||||
DROP TABLE IF EXISTS `wfc_user_db`.`u_cdr_detail`;
|
||||
|
||||
DROP TABLE IF EXISTS `wfc_user_db`.`u_credit_card_order`;
|
||||
|
||||
DROP TABLE IF EXISTS `wfc_user_db`.`u_credit_card_token`;
|
||||
|
||||
DROP TABLE IF EXISTS `wfc_user_db`.`u_wxpay_order`;
|
||||
|
||||
SET FOREIGN_KEY_CHECKS = 1;
|
||||
@@ -1,6 +1,18 @@
|
||||
SET NAMES utf8mb4;
|
||||
SET FOREIGN_KEY_CHECKS = 0;
|
||||
|
||||
DROP TABLE IF EXISTS `wfc_user_db`.`u_alipay_order`;
|
||||
|
||||
DROP TABLE IF EXISTS `wfc_user_db`.`u_balance`;
|
||||
|
||||
DROP TABLE IF EXISTS `wfc_user_db`.`u_cdr_detail`;
|
||||
|
||||
DROP TABLE IF EXISTS `wfc_user_db`.`u_credit_card_order`;
|
||||
|
||||
DROP TABLE IF EXISTS `wfc_user_db`.`u_credit_card_token`;
|
||||
|
||||
DROP TABLE IF EXISTS `wfc_user_db`.`u_wxpay_order`;
|
||||
|
||||
ALTER TABLE `wfc_user_db`.`u_user`
|
||||
ADD COLUMN `birth_date` date NULL COMMENT '出生日期' AFTER `age`;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user