security improvements
This commit is contained in:
@@ -44,9 +44,9 @@ func Migrate(db *gorm.DB) {
|
||||
&model.StateHistory{},
|
||||
&model.SteamCredentials{},
|
||||
&model.SystemConfig{},
|
||||
&model.User{},
|
||||
&model.Role{},
|
||||
&model.Permission{},
|
||||
&model.Role{},
|
||||
&model.User{},
|
||||
)
|
||||
|
||||
if err != nil {
|
||||
@@ -55,6 +55,10 @@ func Migrate(db *gorm.DB) {
|
||||
|
||||
db.FirstOrCreate(&model.ApiModel{Api: "Works"})
|
||||
|
||||
// Run security migrations - temporarily disabled until migration is fixed
|
||||
// TODO: Implement proper migration system
|
||||
logging.Info("Database migration system needs to be implemented")
|
||||
|
||||
Seed(db)
|
||||
}
|
||||
|
||||
@@ -80,8 +84,6 @@ func Seed(db *gorm.DB) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
|
||||
func seedTracks(db *gorm.DB) error {
|
||||
tracks := []model.Track{
|
||||
{Name: "monza", UniquePitBoxes: 29, PrivateServerSlots: 60},
|
||||
|
||||
Reference in New Issue
Block a user