Documentation
¶
Overview ¶
Package migrate owns the forward-only SQLite migration registry and runner. Version numbers are never reused. History edits fail startup loudly.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SchemaMigration ¶
type SchemaMigration struct {
Version int64 `gorm:"primaryKey"`
Name string `gorm:"not null"`
AppliedAt time.Time `gorm:"not null"`
}
SchemaMigration records one applied migration.
func (SchemaMigration) TableName ¶
func (SchemaMigration) TableName() string
TableName pins the migrations table name.
Click to show internal directories.
Click to hide internal directories.