From 7ef05188dfe3cfa29bc8ecb342ddf3c444516ec2 Mon Sep 17 00:00:00 2001 From: "chen.ma" Date: Sun, 27 Feb 2022 21:50:56 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E7=A7=9F=E6=88=B7=E3=80=81?= =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E3=80=81=E7=BA=BF=E7=A8=8B=E6=B1=A0=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E8=A1=A8=E5=94=AF=E4=B8=80=E7=B4=A2=E5=BC=95.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hippo4j-server/conf/hippo4j_manager.sql | 6 ++++++ hippo4j-server/conf/sql-upgrade/1.1.0_upgrade.sql | 5 +++++ 2 files changed, 11 insertions(+) create mode 100644 hippo4j-server/conf/sql-upgrade/1.1.0_upgrade.sql diff --git a/hippo4j-server/conf/hippo4j_manager.sql b/hippo4j-server/conf/hippo4j_manager.sql index b44db5da..7f25d307 100644 --- a/hippo4j-server/conf/hippo4j_manager.sql +++ b/hippo4j-server/conf/hippo4j_manager.sql @@ -226,3 +226,9 @@ INSERT INTO `user` (`id`, `user_name`, `password`, `role`, `gmt_create`, `gmt_mo /* 通知表 */ INSERT INTO `notify` (`id`, `tenant_id`, `item_id`, `tp_id`, `platform`, `type`, `secret_key`, `interval`, `receives`, `enable`, `gmt_create`, `gmt_modified`, `del_flag`) VALUES ('1', 'prescription', 'dynamic-threadpool-example', 'message-produce', 'DING', 'CONFIG', '4a582a588a161d6e3a1bd1de7eea9ee9f562cdfcbe56b6e72029e7fd512b2eae', NULL, '15601166691', '0', '2021-11-18 22:49:50', '2021-11-18 22:49:50', '0'), ('2', 'prescription', 'dynamic-threadpool-example', 'message-produce', 'DING', 'ALARM', '4a582a588a161d6e3a1bd1de7eea9ee9f562cdfcbe56b6e72029e7fd512b2eae', '30', '15601166691', '0', '2021-11-18 22:50:06', '2021-11-18 22:50:06', '0'); + +/* 1.1.0 Upgrade Start */ +ALTER TABLE `config` DROP INDEX `uk_configinfo_datagrouptenant`; +ALTER TABLE `item` DROP INDEX `uk_iteminfo_tenantitem`; +ALTER TABLE `tenant` DROP INDEX `uk_tenantinfo_tenantid`; +/* 1.1.0 Upgrade End */ diff --git a/hippo4j-server/conf/sql-upgrade/1.1.0_upgrade.sql b/hippo4j-server/conf/sql-upgrade/1.1.0_upgrade.sql new file mode 100644 index 00000000..0b4be247 --- /dev/null +++ b/hippo4j-server/conf/sql-upgrade/1.1.0_upgrade.sql @@ -0,0 +1,5 @@ +ALTER TABLE `config` DROP INDEX `uk_configinfo_datagrouptenant`; + +ALTER TABLE `item` DROP INDEX `uk_iteminfo_tenantitem`; + +ALTER TABLE `tenant` DROP INDEX `uk_tenantinfo_tenantid`;