Browse Source

[Bug-3845]postgresql need to add IF NOT EXISTS for table t_ds_process… (#3852)

* [Bug-3845]postgresql need to add IF NOT EXISTS for table t_ds_process_definition_version too.

* restart unit test

* rerun unit test
yangruochen 4 years ago
parent
commit
7c1ff53a74
1 changed files with 1 additions and 3 deletions
  1. 1 3
      sql/upgrade/1.3.3_schema/postgresql/dolphinscheduler_ddl.sql

+ 1 - 3
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();
 
 
 
-
-