Versions in this module Expand all Collapse all v1 v1.0.1 Sep 25, 2023 v1.0.0 Jan 17, 2023 Changes in this version + var ErrNotFound = errors.New("not found") + 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 string + const OrderASC + const OrderDESC + type SaveMigrationRequest struct + Description string + Rank int + State models.MigrationState + Type string + Version string