mirror of
https://github.com/jsiebens/ionscale.git
synced 2026-03-31 15:07:49 +01:00
24 lines
397 B
Go
24 lines
397 B
Go
package migration
|
|
|
|
import (
|
|
"github.com/go-gormigrate/gormigrate/v2"
|
|
"gorm.io/gorm"
|
|
"time"
|
|
)
|
|
|
|
func m202312271200_account_last_authenticated() *gormigrate.Migration {
|
|
return &gormigrate.Migration{
|
|
ID: "202312271200",
|
|
Migrate: func(db *gorm.DB) error {
|
|
type Account struct {
|
|
LastAuthenticated *time.Time
|
|
}
|
|
|
|
return db.AutoMigrate(
|
|
&Account{},
|
|
)
|
|
},
|
|
Rollback: nil,
|
|
}
|
|
}
|