From 7c1ff53a7428b9edb8d179c01a6d715920745f1e Mon Sep 17 00:00:00 2001 From: yangruochen Date: Thu, 8 Oct 2020 17:23:40 +0800 Subject: [PATCH] =?UTF-8?q?[Bug-3845]postgresql=20need=20to=20add=20IF=20N?= =?UTF-8?q?OT=20EXISTS=20for=20table=20t=5Fds=5Fprocess=E2=80=A6=20(#3852)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [Bug-3845]postgresql need to add IF NOT EXISTS for table t_ds_process_definition_version too. * restart unit test * rerun unit test --- sql/upgrade/1.3.3_schema/postgresql/dolphinscheduler_ddl.sql | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sql/upgrade/1.3.3_schema/postgresql/dolphinscheduler_ddl.sql b/sql/upgrade/1.3.3_schema/postgresql/dolphinscheduler_ddl.sql index 3351cac88c..477cb3bf60 100644 --- a/sql/upgrade/1.3.3_schema/postgresql/dolphinscheduler_ddl.sql +++ b/sql/upgrade/1.3.3_schema/postgresql/dolphinscheduler_ddl.sql @@ -91,7 +91,7 @@ DROP FUNCTION IF EXISTS uc_dolphin_T_t_ds_task_instance_A_var_pool(); delimiter d// CREATE OR REPLACE FUNCTION ct_dolphin_T_t_ds_process_definition_version() RETURNS void AS $$ BEGIN -CREATE TABLE t_ds_process_definition_version ( +CREATE TABLE IF NOT EXISTS t_ds_process_definition_version ( id int NOT NULL , process_definition_id int NOT NULL , version int DEFAULT NULL , @@ -140,5 +140,3 @@ DROP FUNCTION IF EXISTS uc_dolphin_T_t_ds_resources_un(); - -