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
pull/3/MERGE
yangruochen 4 years ago committed by GitHub
parent
commit
7c1ff53a74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      sql/upgrade/1.3.3_schema/postgresql/dolphinscheduler_ddl.sql

4
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();

Loading…
Cancel
Save