From 8306eec6cdfcc258d19168c5fb500779fb08c79b Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Mon, 9 Sep 2024 14:58:46 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E6=9B=B4=E6=96=B0flyway?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/db/desktop/V2.10.1__ddl.sql | 4 ++++ .../src/main/resources/db/migration/V2.10.1__ddl.sql | 4 ++++ 2 files changed, 8 insertions(+) create mode 100644 core/core-backend/src/main/resources/db/desktop/V2.10.1__ddl.sql create mode 100644 core/core-backend/src/main/resources/db/migration/V2.10.1__ddl.sql diff --git a/core/core-backend/src/main/resources/db/desktop/V2.10.1__ddl.sql b/core/core-backend/src/main/resources/db/desktop/V2.10.1__ddl.sql new file mode 100644 index 0000000000..0743c4fafa --- /dev/null +++ b/core/core-backend/src/main/resources/db/desktop/V2.10.1__ddl.sql @@ -0,0 +1,4 @@ +ALTER TABLE `visualization_outer_params_info` + ADD COLUMN `required` tinyint(1) DEFAULT 0 COMMENT '是否必填', +ADD COLUMN `default_value` longtext NULL COMMENT '默认值 JSON格式'; +update visualization_outer_params_info set required =0; \ No newline at end of file diff --git a/core/core-backend/src/main/resources/db/migration/V2.10.1__ddl.sql b/core/core-backend/src/main/resources/db/migration/V2.10.1__ddl.sql new file mode 100644 index 0000000000..0743c4fafa --- /dev/null +++ b/core/core-backend/src/main/resources/db/migration/V2.10.1__ddl.sql @@ -0,0 +1,4 @@ +ALTER TABLE `visualization_outer_params_info` + ADD COLUMN `required` tinyint(1) DEFAULT 0 COMMENT '是否必填', +ADD COLUMN `default_value` longtext NULL COMMENT '默认值 JSON格式'; +update visualization_outer_params_info set required =0; \ No newline at end of file