1.3.0: code: fix close issue #1
Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
parent
98cdbaef90
commit
1992280022
2 changed files with 38 additions and 7 deletions
|
|
@ -43,7 +43,7 @@ func Init_database(dsn string) (*gorm.DB, error) {
|
|||
if err != nil {
|
||||
return db, err
|
||||
}
|
||||
db.AutoMigrate(&Users{})
|
||||
_ = db.AutoMigrate(&Users{})
|
||||
DropUnusedColumns(db, &Users{})
|
||||
|
||||
return db, nil
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue