1.3.0: code: fix close issue #1
All checks were successful
Test Pipeline / lint (pull_request) Successful in 2m11s
Test Pipeline / ci-test (pull_request) Successful in 3m41s

Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
GnomeZworc 2025-09-26 02:56:16 +02:00
commit 1992280022
Signed by: nicolas.boufideline
GPG key ID: 4406BBBF8845D632
2 changed files with 38 additions and 7 deletions

View file

@ -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