You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by GitBox <gi...@apache.org> on 2021/12/22 15:06:13 UTC

[GitHub] [dolphinscheduler] lgcareer commented on a change in pull request #7530: [Improvement-#7529][tools] Init DB schema from the full sql file.

lgcareer commented on a change in pull request #7530:
URL: https://github.com/apache/dolphinscheduler/pull/7530#discussion_r773956932



##########
File path: dolphinscheduler-tools/src/main/java/org/apache/dolphinscheduler/tools/datasource/CreateDolphinScheduler.java
##########
@@ -42,10 +42,14 @@ public static void main(String[] args) {
 
         @Override
         public void run(String... args) throws Exception {
+            if (dolphinSchedulerManager.schemaIsInitialized()) {
+                dolphinSchedulerManager.upgradeDolphinScheduler();
+                logger.info("upgrade DolphinScheduler finished");
+            } else {
+                dolphinSchedulerManager.initDolphinScheduler();
+            }
             dolphinSchedulerManager.initDolphinScheduler();

Review comment:
       Thanks,you are right,I will remove it.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org