Skip to content

Commit

Permalink
rename the migration model package name.
Browse files Browse the repository at this point in the history
  • Loading branch information
AnalogJ committed Jul 17, 2022
1 parent 5b2746f commit dd0c3e6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package m20220625184300
package m20220716214900

import (
"gorm.io/gorm"
Expand Down
6 changes: 3 additions & 3 deletions webapp/backend/pkg/database/scrutiny_repository_migrations.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"github.com/analogj/scrutiny/webapp/backend/pkg/database/migrations/m20201107210306"
"github.com/analogj/scrutiny/webapp/backend/pkg/database/migrations/m20220503120000"
"github.com/analogj/scrutiny/webapp/backend/pkg/database/migrations/m20220509170100"
"github.com/analogj/scrutiny/webapp/backend/pkg/database/migrations/m20220625184300"
"github.com/analogj/scrutiny/webapp/backend/pkg/database/migrations/m20220716214900"
"github.com/analogj/scrutiny/webapp/backend/pkg/models"
"github.com/analogj/scrutiny/webapp/backend/pkg/models/collector"
"github.com/analogj/scrutiny/webapp/backend/pkg/models/measurements"
Expand Down Expand Up @@ -277,11 +277,11 @@ func (sr *scrutinyRepository) Migrate(ctx context.Context) error {
},
},
{
ID: "m20220716214900", // settings table.
ID: "m20220716214900", // add settings table.
Migrate: func(tx *gorm.DB) error {

// adding the settings table.
return tx.AutoMigrate(m20220625184300.Setting{})
return tx.AutoMigrate(m20220716214900.Setting{})
},
},
})
Expand Down

0 comments on commit dd0c3e6

Please sign in to comment.