Package Exports
- alterjs
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (alterjs) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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 alterAll 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 databaseUse
Init
First, init your alter projet:
alter initThis 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