mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-05-05 01:38:54 +08:00
db
This commit is contained in:
parent
53c278234d
commit
dff32dd7ef
@ -143,7 +143,7 @@ func initMysqlDB() {
|
||||
if !db.Migrator().HasTable(&im_mysql_model.UserIpRecord{}) {
|
||||
db.Migrator().CreateTable(&im_mysql_model.UserIpRecord{})
|
||||
}
|
||||
|
||||
DB.MysqlDB.db = db
|
||||
im_mysql_model.GroupDB = db.Table("groups")
|
||||
im_mysql_model.GroupMemberDB = db.Table("group_members")
|
||||
im_mysql_model.UserDB = db.Table("users")
|
||||
@ -157,7 +157,7 @@ func initMysqlDB() {
|
||||
im_mysql_model.FriendRequestDB = db.Table("friend_requests")
|
||||
im_mysql_model.GroupRequestDB = db.Table("group_requests")
|
||||
im_mysql_model.AppDB = db.Table("app_db")
|
||||
DB.MysqlDB.db = db
|
||||
|
||||
}
|
||||
|
||||
func (m *mysqlDB) DefaultGormDB() *gorm.DB {
|
||||
|
Loading…
x
Reference in New Issue
Block a user