diff --git a/backend/init/migration/migrations/init.go b/backend/init/migration/migrations/init.go index 4af909d4d..6163e15e2 100644 --- a/backend/init/migration/migrations/init.go +++ b/backend/init/migration/migrations/init.go @@ -579,6 +579,9 @@ var AddTableFirewall = &gormigrate.Migration{ return err } _ = tx.Exec("alter table remote_dbs rename to databases;").Error + if err := tx.AutoMigrate(&model.Database{}); err != nil { + return err + } return nil }, }