INACTIVE - http://mzl.la/ghe-archive - A package/program to help patch MySql databases
Перейти к файлу
Andrew Chilton 64fe490a93 Add tests and fixes for checkAllPatchesAvailable() 2014-08-20 17:14:01 +12:00
test Add tests and fixes for checkAllPatchesAvailable() 2014-08-20 17:14:01 +12:00
.gitignore Initial Skeleton 2014-08-14 15:45:04 +12:00
README.md Some code dumping, tests to come next 2014-08-18 19:39:30 +12:00
index.js Add tests and fixes for checkAllPatchesAvailable() 2014-08-20 17:14:01 +12:00
package.json Some code dumping, tests to come next 2014-08-18 19:39:30 +12:00

README.md

mysql-patcher

A package/program to help patch MySql databases.

.patch(options)

Options:

  • createDatabase :

  • reversePatchAllowed : true/false - allow reverse patching to take place (default: false)

  • upgrade : true/false - Useful to set to false if no patch (default: true)

General MySql Options

If any of the following are provided they are passed through to the mysql connection options. If they are not provided, they will take the default mentioned here:

  • host
  • port
  • user
  • password
  • database
  • charset

createDatabase

  • Type: Boolean (true/false)
  • Default: false

Determines whether to try to create the database if it does not exist. Since only one set of credentials are allowed, then the credentials given must have the MySql permissions required to create the database. Because of this, this option is generally only useful in development.

user

  • Type: String
  • No Default

The username of the database user to connect as.

(Ends)