fix: add Users, Roles, Submodules to normal-startup AutoMigrate
Ensures tipo_usuario, EsPortalCliente, and other new columns on core models are created in Docker deployments that never run --migrate. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
co-authored by
Copilot
parent
4fec04e5fe
commit
2d6b4d8271
@@ -49,6 +49,10 @@ func main() {
|
||||
migrations.MigratePortal()
|
||||
// Crear tablas de integraciones y pasarelas si no existen
|
||||
app.Http.Database.DB.AutoMigrate(
|
||||
// Tablas base del sistema (columnas nuevas)
|
||||
&models.Users{},
|
||||
&models.Roles{},
|
||||
&models.Submodules{},
|
||||
&models.QueryHistory{},
|
||||
&models.HostingerConfig{},
|
||||
&models.CloudflareConfig{},
|
||||
|
||||
Reference in New Issue
Block a user