table of contents
SKYTOOLS_UPGRADE(1) | SKYTOOLS_UPGRADE(1) |
NAME¶
skytools_upgrade - utility for upgrading Skytools code in databases.
SYNOPSIS¶
skytools_upgrade.py [switches] connstr [connstr ...]
DESCRIPTION¶
It connects to given database, then looks for following schemas:
pgq
pgq_ext
londiste
If schema exists, its version is detected by querying .version() function under schema. If the function does not exists, there is some heuristics built in to differentiate between 2.1.4 and 2.1.5 version of the schemas.
If detected that version is older than current, it is upgraded by applying upgrade scripts in order.
COMMAND LINE SWITCHES¶
Following switches are common to all skytools.DBScript-based Python programs.
-h, --help
-q, --quiet
-v, --verbose
-d, --daemon
--ini
Following switches are used to control already running process. The pidfile is read from config then signal is sent to process id specified there.
-r, --reload
-s, --stop
-k, --kill
Options specific to skytools_upgrade:
--all
--not-really
09/28/2016 |