organization

pull/218/head
skiffer-git 3 years ago
parent bef4f0c4e2
commit cde38e012f

@ -106,20 +106,20 @@ func initMysqlDB() {
fmt.Println("CreateTable Conversation") fmt.Println("CreateTable Conversation")
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{})
} }
*/
return return
} }

Loading…
Cancel
Save