fly-migrate-0.1.1 is not a library.
Visit the last successful build:
fly-migrate-0.1.2
fly
A simple CLI database migration tool for postgresql. Very much work-in-progress at the moment.
Installing
Available on crates.io as fly-migrate:
$ cargo install fly-migrate
# installs `fly` to `~/.cargo/bin`:
$ fly --help
Configuration
Fly expects the following env variables set. It will also use dotenv
to look in a .env file.
MIGRATE_DIR: Path to your migrations (e.g.,db/migrate).PG_USERPG_PASSWORD(optional)PG_HOSTPG_PORTPG_DB
Subcommands
up: Applies all pending migrations.down: Rolls back the last migration.status: Prints the current status of the database.new: Creates a new migration file.