This is an automated email from the ASF dual-hosted git repository.

gaojun2048 pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-dolphinscheduler.git


The following commit(s) were added to refs/heads/dev by this push:
     new 42c88a7  [FIX-Bug #3845][Ambari Plugin] Start Ambari report an error: 
Table 't_ds_process_definition_version' already exists (#3846)
42c88a7 is described below

commit 42c88a7c68a89af7e3d7f060fd65d329a13c33d0
Author: yangruochen <[email protected]>
AuthorDate: Mon Sep 28 18:18:52 2020 +0800

    [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
---
 sql/upgrade/1.3.3_schema/mysql/dolphinscheduler_ddl.sql | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sql/upgrade/1.3.3_schema/mysql/dolphinscheduler_ddl.sql 
b/sql/upgrade/1.3.3_schema/mysql/dolphinscheduler_ddl.sql
index ae66da9..f7b3bbc 100644
--- a/sql/upgrade/1.3.3_schema/mysql/dolphinscheduler_ddl.sql
+++ b/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',

Reply via email to