diff --git a/sql/upgrade/1.0.9/upgrade.sql b/sql/upgrade/1.0.9/upgrade.sql new file mode 100644 index 0000000..4a14756 --- /dev/null +++ b/sql/upgrade/1.0.9/upgrade.sql @@ -0,0 +1,9 @@ +SET FOREIGN_KEY_CHECKS = 0; + +INSERT INTO `wfc_system_db`.`sys_menu` (`menu_id`, `menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`, `name`) VALUES (2031, 'menu.device.wlan.management', 2028, 12, '/device/wlan', 'view.device_wlan', NULL, 1, 1, 'C', '0', '0', '', 'carbon:rocket', 'super', '2025-02-18 10:46:31', '', NULL, '', 'device_wlan'); + +INSERT INTO `wfc_system_db`.`sys_menu` (`menu_id`, `menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`, `name`) VALUES (2032, 'menu.device.portal.management', 2028, 14, '/device/portal', 'view.device_portal', NULL, 1, 1, 'C', '0', '0', '', 'carbon:building-insights-3', 'super', '2025-02-18 10:46:31', '', NULL, '', 'device_portal'); + +INSERT INTO `wfc_system_db`.`sys_role_menu` (`role_id`, `menu_id`) VALUES (2, 2032); + +SET FOREIGN_KEY_CHECKS = 1; \ No newline at end of file diff --git a/sql/upgrade/wfc_config_db/upgrade.sql b/sql/upgrade/wfc_config_db/upgrade.sql deleted file mode 100644 index 70644b1..0000000 --- a/sql/upgrade/wfc_config_db/upgrade.sql +++ /dev/null @@ -1,5 +0,0 @@ - -SET NAMES utf8mb4; -SET FOREIGN_KEY_CHECKS = 0; - -SET FOREIGN_KEY_CHECKS = 1; \ No newline at end of file diff --git a/sql/upgrade/wfc_system_db/upgrade.sql b/sql/upgrade/wfc_system_db/upgrade.sql deleted file mode 100644 index 70644b1..0000000 --- a/sql/upgrade/wfc_system_db/upgrade.sql +++ /dev/null @@ -1,5 +0,0 @@ - -SET NAMES utf8mb4; -SET FOREIGN_KEY_CHECKS = 0; - -SET FOREIGN_KEY_CHECKS = 1; \ No newline at end of file diff --git a/sql/upgrade/wfc_user_db/upgrade.sql b/sql/upgrade/wfc_user_db/upgrade.sql deleted file mode 100644 index 2a4b89b..0000000 --- a/sql/upgrade/wfc_user_db/upgrade.sql +++ /dev/null @@ -1,19 +0,0 @@ -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`; - -SET FOREIGN_KEY_CHECKS = 1;