From 4d294609593f21cdb4f5ef90875474238dbd37f2 Mon Sep 17 00:00:00 2001 From: Tq Date: Wed, 4 Jan 2023 14:59:47 +0800 Subject: [PATCH] rename h2 and postgreSQL table t_ds_fav to t_ds_fav_task (#13333) --- .../src/main/resources/sql/dolphinscheduler_h2.sql | 6 +++--- .../src/main/resources/sql/dolphinscheduler_postgresql.sql | 6 +++--- .../3.1.3_schema/postgresql/dolphinscheduler_ddl.sql | 1 + 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/dolphinscheduler-dao/src/main/resources/sql/dolphinscheduler_h2.sql b/dolphinscheduler-dao/src/main/resources/sql/dolphinscheduler_h2.sql index 15e1d56cb2..19719ed9e9 100644 --- a/dolphinscheduler-dao/src/main/resources/sql/dolphinscheduler_h2.sql +++ b/dolphinscheduler-dao/src/main/resources/sql/dolphinscheduler_h2.sql @@ -1997,10 +1997,10 @@ INSERT INTO `t_ds_cluster` VALUES (100, 0, 'ds_null_k8s', '{"k8s":"ds_null_k8s"}', 'test', 1, '2021-03-03 11:31:24.0', '2021-03-03 11:31:24.0'); -- --- Table structure for t_ds_fav +-- Table structure for t_ds_fav_task -- -DROP TABLE IF EXISTS t_ds_fav CASCADE; -CREATE TABLE t_ds_fav +DROP TABLE IF EXISTS t_ds_fav_task CASCADE; +CREATE TABLE t_ds_fav_task ( id bigint(20) NOT NULL AUTO_INCREMENT, task_name varchar(64) NOT NULL, diff --git a/dolphinscheduler-dao/src/main/resources/sql/dolphinscheduler_postgresql.sql b/dolphinscheduler-dao/src/main/resources/sql/dolphinscheduler_postgresql.sql index cd7f5107a7..1929fc4d73 100644 --- a/dolphinscheduler-dao/src/main/resources/sql/dolphinscheduler_postgresql.sql +++ b/dolphinscheduler-dao/src/main/resources/sql/dolphinscheduler_postgresql.sql @@ -1953,11 +1953,11 @@ CREATE TABLE t_ds_cluster( ); -- --- Table structure for t_ds_fav +-- Table structure for t_ds_fav_task -- -DROP TABLE IF EXISTS t_ds_fav; -CREATE TABLE t_ds_fav +DROP TABLE IF EXISTS t_ds_fav_task; +CREATE TABLE t_ds_fav_task ( id serial NOT NULL, task_name varchar(64) NOT NULL, diff --git a/dolphinscheduler-dao/src/main/resources/sql/upgrade/3.1.3_schema/postgresql/dolphinscheduler_ddl.sql b/dolphinscheduler-dao/src/main/resources/sql/upgrade/3.1.3_schema/postgresql/dolphinscheduler_ddl.sql index 4a14f326b9..854454ae05 100644 --- a/dolphinscheduler-dao/src/main/resources/sql/upgrade/3.1.3_schema/postgresql/dolphinscheduler_ddl.sql +++ b/dolphinscheduler-dao/src/main/resources/sql/upgrade/3.1.3_schema/postgresql/dolphinscheduler_ddl.sql @@ -14,3 +14,4 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +ALTER TABLE t_ds_fav RENAME TO t_ds_fav_task; \ No newline at end of file