Documentation ¶
Index ¶
- Variables
- func CreateMigrationsTable(db *gorm.DB) error
- func CreateVersionTable(db *gorm.DB) error
- func GetMigrationsSorted(db *gorm.DB, order Order) ([]models.MigrationModel, error)
- func GetVersion(db *gorm.DB) (string, error)
- func HasMigrationsTable(db *gorm.DB) bool
- func HasVersionTable(db *gorm.DB) bool
- func SaveMigration(db *gorm.DB, request SaveMigrationRequest) (models.MigrationModel, error)
- func SaveVersion(db *gorm.DB, version string) error
- func UpdateMigrationState(db *gorm.DB, model *models.MigrationModel, state models.MigrationState) error
- func UpdateMigrationStateExecuted(db *gorm.DB, model *models.MigrationModel, state models.MigrationState, ...) error
- type Order
- type SaveMigrationRequest
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotFound = errors.New("not found")
)
Functions ¶
func CreateMigrationsTable ¶
func CreateVersionTable ¶
func GetMigrationsSorted ¶
func HasMigrationsTable ¶
func HasVersionTable ¶
func SaveMigration ¶
func SaveMigration(db *gorm.DB, request SaveMigrationRequest) (models.MigrationModel, error)
func UpdateMigrationState ¶
func UpdateMigrationState(db *gorm.DB, model *models.MigrationModel, state models.MigrationState) error
func UpdateMigrationStateExecuted ¶
func UpdateMigrationStateExecuted(db *gorm.DB, model *models.MigrationModel, state models.MigrationState, checksum string) error
Types ¶
type SaveMigrationRequest ¶
Click to show internal directories.
Click to hide internal directories.