#migration #manager #cassandra #crap #hold

app vagabond

crap cassandra migrations manager

2 releases

0.1.1 May 27, 2019
0.1.0 May 27, 2019

#29 in #hold

MIT license

15KB
323 lines

How do I use this garbage?

Good point, bad question. Essentially, theres a ./migrations folder that holds all your migrations similar to diesel (the only other migrations thing ive used so dont think I have any experience). ./migrations/vagabond holds an ordered list of all migrations, and a vagabond table in the database holds the currently applied migration.

When the binary is called without a subcommand, it will display a list of applied (green) and unapplied (red) migrations.

Commands

  • init - Initializes the directory
  • new <name> - Makes a ./migrations subdirectory and appends to the vagabond
  • redo - Redos the applied migration
  • rollback - Rolls back the applied migration
  • apply - Applies the next unapplied migration
  • delete - Deletes all unapplied migrations. pretty dangerous

goodbye and have an excellent day

Dependencies

~4–9MB
~78K SLoC