Albirew/nyaa-pantsu
Archivé
1
0
Bifurcation 0

Azhao12345 fix

Cette révision appartient à :
akuma06 2017-05-08 02:18:48 +02:00
Parent f8f77f58c7
révision 384b2c15de

Voir le fichier

@ -31,8 +31,8 @@ func GormInit(conf *config.Config) (*gorm.DB, error) {
if config.Environment == "DEVELOPMENT" { if config.Environment == "DEVELOPMENT" {
db.LogMode(true) db.LogMode(true)
// db.DropTable(&model.User{}, "UserFollower") // db.DropTable(&model.User{}, "UserFollower")
db.AutoMigrate(&model.Torrents{}, &model.User{}, &model.Role{}, &model.Language{}) db.AutoMigrate(&model.Torrents{}, &model.UsersFollowers{}, &model.User{}, &model.Role{}, &model.Language{})
// db.AutoMigrate(&model.Article{}, &model.Location{}, &model.Comment{}, &model.File{}) // db.AutoMigrate(&model.Comment{})
// db.Model(&model.User{}).AddIndex("idx_user_token", "token") // db.Model(&model.User{}).AddIndex("idx_user_token", "token")
} }