turtle

command module
v0.0.0-...-3226211 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2016 License: MIT Imports: 7 Imported by: 0

README

Turtle

Build Status Coverage Status

Sea turtles have migrating vast oceans for centuries and now you can be be power and grace of a turtle migration for your mySQL database.

Installation

go get github.com/nicday/turtle

Configuration

Turtle relies on your database connection details being present in your environment variables in order to preform the migrations. Turtle will try to autoload .env from the working directory, merging any variables found into the environment.

Please see .env.default for an example .env file.

Commands

The generate command generates a new set of migration files with your chosen migration name. Once the files have been generated you will need to populate them with your migration SQL.

turtle generate [name]

The up command applies all inactive migrations. Migrations that have already been applied are ignored.

turtle up

The down command reverts all active migrations. Migrations that are haven't been applied are ignroned.

turtle down
TODO
  • Ability to revert to migration x
  • Add PostgreSQL support
  • Provide information output on performed migrations
  • Example of using turtle migrations within Go
  • Create and update schema file after each performed migration

Author

Nic Day

License

Turtle is MIT-Licensed

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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