migrate

command
v0.0.0-...-d25a9c8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 28, 2023 License: GPL-3.0, GPL-3.0-only Imports: 16 Imported by: 0

README

Migrate

Internal utility for development - allows developers to use go-migrate without installing the binary.

(The history here is that the original go-migrate binary did not have built-in support for sqlite3 as it requires cgo. So, I made this quick-and-dirty utility for dealing with migrations that somewhat wraps the go-migrate binary but adds sqlite3 support. Now, both go-migrate and Conductorr have transitioned to supporting the sqlite driver so this utility is no longer needed if you have the go-migrate binary. However, I opted to leave it here for convenience as it should still work fine)

Usage

To run the utility, use go run ./cmd/migrate and supply a command

Available commands:

  • help - Show a help menu
  • create - Create a new migration
  • force - Force update the database version

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL