101577f163
- Updated import paths in multiple service files to reflect the new agent-desk module. - Added a new configuration file for agent-desk in the Docker setup.
16 lines
271 B
Go
16 lines
271 B
Go
package bootstrap
|
|
|
|
import (
|
|
"agent-desk/internal/migration"
|
|
"agent-desk/internal/models"
|
|
|
|
"github.com/mlogclub/simple/sqls"
|
|
)
|
|
|
|
func InitMigrations() error {
|
|
if err := sqls.DB().AutoMigrate(models.Models...); err != nil {
|
|
return err
|
|
}
|
|
return migration.Migrate()
|
|
}
|