You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@eventmesh.apache.org by mi...@apache.org on 2022/11/21 02:55:34 UTC

[incubator-eventmesh] branch master updated: fix workflow db init schema

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

mikexue pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-eventmesh.git


The following commit(s) were added to refs/heads/master by this push:
     new aa5e0058 fix workflow db init schema
     new 64f9a50a Merge pull request #2232 from horoc/fix-workflow-db-schema
aa5e0058 is described below

commit aa5e0058c57660dd8120f233c027c2a8bb19cf2a
Author: horoc <ho...@gmail.com>
AuthorDate: Thu Nov 17 22:26:24 2022 +0800

    fix workflow db init schema
---
 eventmesh-catalog-go/distribution/mysql-schema.sql  | 5 ++++-
 eventmesh-workflow-go/distribution/mysql-schema.sql | 5 ++++-
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/eventmesh-catalog-go/distribution/mysql-schema.sql b/eventmesh-catalog-go/distribution/mysql-schema.sql
index 0048f6bc..646bcb37 100644
--- a/eventmesh-catalog-go/distribution/mysql-schema.sql
+++ b/eventmesh-catalog-go/distribution/mysql-schema.sql
@@ -15,7 +15,10 @@
  * limitations under the License.
  */
 
-create database db_catalog;
+create database if not exists db_catalog;
+
+use db_catalog;
+
 create table if not exists t_event
 (
     id          int auto_increment comment '主键、自增'
diff --git a/eventmesh-workflow-go/distribution/mysql-schema.sql b/eventmesh-workflow-go/distribution/mysql-schema.sql
index 5409ecf4..8b18c9f4 100644
--- a/eventmesh-workflow-go/distribution/mysql-schema.sql
+++ b/eventmesh-workflow-go/distribution/mysql-schema.sql
@@ -15,7 +15,10 @@
  * limitations under the License.
  */
 
-create database db_workflow;
+create database if not exists db_workflow;
+
+use db_workflow;
+
 create table if not exists t_workflow
 (
     id            int auto_increment primary key,


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: commits-help@eventmesh.apache.org