mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-24 02:16:16 +08:00
organization
This commit is contained in:
parent
cde38e012f
commit
edf7df368e
@ -107,15 +107,15 @@ func initMysqlDB() {
|
|||||||
db.CreateTable(&Conversation{})
|
db.CreateTable(&Conversation{})
|
||||||
}
|
}
|
||||||
|
|
||||||
if db.HasTable(&Department{}) {
|
if !db.HasTable(&Department{}) {
|
||||||
fmt.Println("CreateTable Department")
|
fmt.Println("CreateTable Department")
|
||||||
db.CreateTable(&Department{})
|
db.CreateTable(&Department{})
|
||||||
}
|
}
|
||||||
if db.HasTable(&OrganizationUser{}) {
|
if !db.HasTable(&OrganizationUser{}) {
|
||||||
fmt.Println("CreateTable OrganizationUser")
|
fmt.Println("CreateTable OrganizationUser")
|
||||||
db.CreateTable(&OrganizationUser{})
|
db.CreateTable(&OrganizationUser{})
|
||||||
}
|
}
|
||||||
if db.HasTable(&DepartmentMember{}) {
|
if !db.HasTable(&DepartmentMember{}) {
|
||||||
fmt.Println("CreateTable DepartmentMember")
|
fmt.Println("CreateTable DepartmentMember")
|
||||||
db.CreateTable(&DepartmentMember{})
|
db.CreateTable(&DepartmentMember{})
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user