1.0.8 • Published 5 years ago

alterjs v1.0.8

Weekly downloads
3
License
ISC
Repository
github
Last release
5 years ago

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

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago