Documentation
¶
Index ¶
- func Apply(ctx context.Context, d *db.DB, cfg *config.Config, stepsCfg *steps.Config, ...) error
- func Rebase(ctx context.Context, d *db.DB, cfg *config.Config, stepsCfg *steps.Config, ...) error
- func Revert(ctx context.Context, d *db.DB, cfg *config.Config, stepsCfg *steps.Config, ...) error
- type Ident
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Rebase ¶
func Rebase(ctx context.Context, d *db.DB, cfg *config.Config, stepsCfg *steps.Config, dbDir, toolVersion string, force bool) error
Rebase folds every migration object into the base step folders. An object an existing base file owns gets its live definition spliced in place. A new concept is grouped with the rest of its source migration's new objects into a new file in the base step that owns its schema, named from the migration and versioned after that folder's existing files. Pure schema migrations empty out; migrations carrying data are the only residue.
Types ¶
Click to show internal directories.
Click to hide internal directories.