Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CustomTime ¶ added in v0.0.5
func (CustomTime) MarshalJson ¶ added in v0.0.5
func (c CustomTime) MarshalJson() ([]byte, error)
func (*CustomTime) Scan ¶ added in v0.0.5
func (c *CustomTime) Scan(value interface{}) error
type MigrationModel ¶
type MigrationModel struct { Id uint32 `gorm:"primaryKey"` Rank int Type string Version string Description string RegisteredOn CustomTime `gorm:"type:datetime"` ExecutedOn *CustomTime `gorm:"type:datetime"` Checksum string State MigrationState }
func (MigrationModel) TableName ¶
func (v MigrationModel) TableName() string
type MigrationState ¶
type MigrationState string
const ( StateSuccess MigrationState = "success" StateFailure MigrationState = "failure" StateUndone MigrationState = "undone" StateRegistered MigrationState = "registered" StateSkipped MigrationState = "skipped" StateNotFound MigrationState = "not found" )
type VersionModel ¶
type VersionModel struct {
Version string
}
func (VersionModel) TableName ¶
func (v VersionModel) TableName() string
Click to show internal directories.
Click to hide internal directories.