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