From 18505871a5fe2014bde7ffc0e8d6f659f9ea0f92 Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Tue, 30 Aug 2022 13:35:22 +0800 Subject: [PATCH] =?UTF-8?q?perf(=E7=B3=BB=E7=BB=9F=E7=AE=A1=E7=90=86-?= =?UTF-8?q?=E5=A4=96=E8=A7=82=E9=85=8D=E7=BD=AE):=20=E4=B8=BB=E9=A2=98api?= =?UTF-8?q?=E7=BB=93=E6=9E=9C=E5=A2=9E=E5=8A=A0=E6=BA=90=E4=B8=BB=E9=A2=98?= =?UTF-8?q?ID?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/src/main/resources/db/migration/V39__1.14.sql | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/backend/src/main/resources/db/migration/V39__1.14.sql b/backend/src/main/resources/db/migration/V39__1.14.sql index d4481ed8d6..50e21a5ab2 100644 --- a/backend/src/main/resources/db/migration/V39__1.14.sql +++ b/backend/src/main/resources/db/migration/V39__1.14.sql @@ -63,3 +63,12 @@ UPDATE `sys_theme_item` set `val` = '#F5F6F7' where `theme_id` = 1 and `key` = ' INSERT INTO `sys_theme_item` VALUES (1, 'deInputDisableBackground', '#EFF0F1'); COMMIT; + + +ALTER TABLE `sys_theme` ADD COLUMN `origin_id` bigint(20) NULL COMMENT '源主题Id' AFTER `senior`; + +BEGIN; +UPDATE `sys_theme` set `origin_id` = 1 where `id` = 1; +UPDATE `sys_theme` set `origin_id` = 2 where `id` = 2; +UPDATE `sys_theme` set `origin_id` = 1 where origin_id is null; +COMMIT;