diff --git a/backend/src/main/resources/db/migration/V10__chart.sql b/backend/src/main/resources/db/migration/V10__chart.sql index a15352a795..d753961d57 100644 --- a/backend/src/main/resources/db/migration/V10__chart.sql +++ b/backend/src/main/resources/db/migration/V10__chart.sql @@ -1,4 +1,5 @@ -- chart start +DROP TABLE IF EXISTS `chart_group`; CREATE TABLE IF NOT EXISTS `chart_group` ( `id` varchar(50) NOT NULL COMMENT 'ID', @@ -12,6 +13,7 @@ CREATE TABLE IF NOT EXISTS `chart_group` ) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4; +DROP TABLE IF EXISTS `chart_view`; CREATE TABLE IF NOT EXISTS `chart_view` ( `id` varchar(50) NOT NULL COMMENT 'ID', diff --git a/backend/src/main/resources/db/migration/V7__dataset.sql b/backend/src/main/resources/db/migration/V7__dataset.sql index c10d9c11b1..03eca87be0 100644 --- a/backend/src/main/resources/db/migration/V7__dataset.sql +++ b/backend/src/main/resources/db/migration/V7__dataset.sql @@ -1,4 +1,5 @@ -- dataset start +DROP TABLE IF EXISTS `dataset_group`; CREATE TABLE IF NOT EXISTS `dataset_group` ( `id` varchar(50) NOT NULL COMMENT 'ID', `name` varchar(64) NOT NULL COMMENT '名称', diff --git a/backend/src/main/resources/db/migration/V9__dataset_tables.sql b/backend/src/main/resources/db/migration/V9__dataset_tables.sql index 8651029f47..5014990160 100644 --- a/backend/src/main/resources/db/migration/V9__dataset_tables.sql +++ b/backend/src/main/resources/db/migration/V9__dataset_tables.sql @@ -1,3 +1,4 @@ +DROP TABLE IF EXISTS `dataset_table`; CREATE TABLE IF NOT EXISTS `dataset_table` ( `id` varchar(50) NOT NULL COMMENT 'ID', @@ -13,6 +14,7 @@ CREATE TABLE IF NOT EXISTS `dataset_table` ) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4; +DROP TABLE IF EXISTS `dataset_table_field`; CREATE TABLE IF NOT EXISTS `dataset_table_field` ( `id` varchar(50) NOT NULL COMMENT 'ID',