mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-09-28 05:46:36 +08:00
20 lines
415 B
Go
20 lines
415 B
Go
package model
|
|
|
|
import "time"
|
|
|
|
const (
|
|
legacyDatabaseSchemaVersion = 1
|
|
currentDatabaseSchemaVersion = 9
|
|
databaseSchemaVersionRowID = 1
|
|
)
|
|
|
|
type DatabaseSchemaVersion struct {
|
|
ID uint `json:"id" gorm:"primaryKey"`
|
|
Version int `json:"version" gorm:"not null"`
|
|
UpdatedAt time.Time `json:"updated_at"`
|
|
}
|
|
|
|
func (DatabaseSchemaVersion) TableName() string {
|
|
return "database_schema_versions"
|
|
}
|