From 659c3bc1cf611e2b708818cf5938e273936d346b Mon Sep 17 00:00:00 2001 From: skiffer-git <44203734@qq.com> Date: Wed, 13 Apr 2022 08:58:52 +0800 Subject: [PATCH] add department db --- pkg/common/db/mysql.go | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/pkg/common/db/mysql.go b/pkg/common/db/mysql.go index 7560af652..982ad378f 100644 --- a/pkg/common/db/mysql.go +++ b/pkg/common/db/mysql.go @@ -106,18 +106,20 @@ func initMysqlDB() { fmt.Println("CreateTable Conversation") db.CreateTable(&Conversation{}) } - if db.HasTable(&Department{}) { - fmt.Println("CreateTable Department") - db.CreateTable(&Department{}) - } - if db.HasTable(&OrganizationUser{}) { - fmt.Println("CreateTable OrganizationUser") - db.CreateTable(&OrganizationUser{}) - } - if db.HasTable(&DepartmentMember{}) { - fmt.Println("CreateTable DepartmentMember") - db.CreateTable(&DepartmentMember{}) - } + /* + if db.HasTable(&Department{}) { + fmt.Println("CreateTable Department") + db.CreateTable(&Department{}) + } + if db.HasTable(&OrganizationUser{}) { + fmt.Println("CreateTable OrganizationUser") + db.CreateTable(&OrganizationUser{}) + } + if db.HasTable(&DepartmentMember{}) { + fmt.Println("CreateTable DepartmentMember") + db.CreateTable(&DepartmentMember{}) + } + */ return }