alterjs

1.0.8 • Public • Published

AlterJs

Manage your databases easier than ever by versionning yours sql files With alter you can create new sql version file with your database updates and apply them with one command.

Install

npm install -g alter

All available commands

alter init # Init your alter projet
alter version # Create new database version file
alter status # See status of all versions
alter apply # Apply all non commited version to your database

Use

Init

First, init your alter projet:

alter init

This will create:

  • db folder to store differents sql version
  • alterResolver to exports database credentials. Add it to your .gitignore file !
  • alter.json to save differents alter configurations
  • The first version of sql statements

alter.json

  • db_folder: The path of the folder which contain sql versions
  • resolver: The path of the credentials resolver script
  • system: The sgbd identifier. Only 'postgres' for the moment

.alterignore

Like .gitignore, but for alterJs

Contributor

Christophe Sonneville

Package Sidebar

Install

npm i alterjs

Weekly Downloads

0

Version

1.0.8

License

ISC

Unpacked Size

12.8 kB

Total Files

15

Last publish

Collaborators

  • krikristoophe