Browse Source

[FIX-Bug #3845][Ambari Plugin] Start Ambari report an error: Table 't_ds_process_definition_version' already exists (#3846)

* [Bug][Ambari Plugin] Start Ambari report an error: Table 't_ds_process_definition_version' already exists #3845

* Revert "[Bug][Ambari Plugin] Start Ambari report an error: Table 't_ds_process_definition_version' already exists #3845"

This reverts commit 56e030e6

* [Bug][Ambari Plugin] Start Ambari report an error: Table 't_ds_process_definition_version' already exists #3845
yangruochen 4 years ago
parent
commit
42c88a7c68
1 changed files with 1 additions and 1 deletions
  1. 1 1
      sql/upgrade/1.3.3_schema/mysql/dolphinscheduler_ddl.sql

+ 1 - 1
sql/upgrade/1.3.3_schema/mysql/dolphinscheduler_ddl.sql

@@ -101,7 +101,7 @@ drop PROCEDURE if EXISTS ct_dolphin_T_t_ds_process_definition_version;
 delimiter d//
 CREATE PROCEDURE ct_dolphin_T_t_ds_process_definition_version()
 BEGIN
-    CREATE TABLE `t_ds_process_definition_version` (
+    CREATE TABLE IF NOT EXISTS `t_ds_process_definition_version` (
                                                        `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'key',
                                                        `process_definition_id` int(11) NOT NULL COMMENT 'process definition id',
                                                        `version` int(11) DEFAULT NULL COMMENT 'process definition version',