Compare commits
1 commit
1992280022
...
beeadb19fe
| Author | SHA1 | Date | |
|---|---|---|---|
|
beeadb19fe |
1 changed files with 1 additions and 1 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