Migration Tool for Postgres databases in node.js
add-migration <name> will add a migration file to
Custom SQl can be written into this file.
migrate will execute all migrations which are not yet in the database.
migrate will look at the environment variable
megrim = require 'megrim' megrim path_to_migrations, psql_connection, (err, result) -> console.err err if err? console.log result
All sql files in
path_to_migrations which are not yet in the database are executed.
After successful execution the timestamp of the migration file is added to the
The format of the migrations files should be