Database migrations are written in Go. Use as CLI or import as a library. Migrate reads migrations from sources and applies them in correct order to a database. Drivers are "dumb", migrate glues everything together and makes sure the logic is bulletproof. (Keeps the drivers lightweight, too.) Database drivers don't assume things or try to correct user input. When in doubt, fail. Package migrate reads migrations from sources and runs them against databases. Sources are defined by the `source.Driver` and databases by the `database.Driver` interface. The driver interfaces are kept "dump", all migration logic is kept in this package.

Features

  • Database connection strings are specified via URLs
  • Any reserved URL characters need to be escaped
  • Source drivers read migrations from local or remote sources
  • Simple wrapper around this library
  • Handles ctrl+c (SIGINT) gracefully
  • No config search paths, no config files, no magic ENV var injections

Project Samples

Project Activity

See All Activity >

Categories

Database, Libraries

License

MIT License

Follow migrate

migrate Web Site

Other Useful Business Software
Our Free Plans just got better! | Auth0 Icon
Our Free Plans just got better! | Auth0

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your security. Auth0 now, thank yourself later.
Try free now
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of migrate!

Additional Project Details

Programming Language

Go

Related Categories

Go Database Software, Go Libraries

Registered

2022-07-15