26.41. kych-oid4vp-dbinit(1)#
26.41.1. Name#
kych-oid4vp-dbinit - initialise and upgrade the kych-oid4vp database schema
26.41.2. Synopsis#
kych-oid4vp-dbinit [-c CONFIG] [-L LEVEL] [-v] [–sql-dir DIR] [-n | –dry-run] [–print-connection]
26.41.3. Description#
kych-oid4vp-dbinit creates the kych_oid4vp schema that
kych-oid4vp(1) keeps its sessions in, and brings an existing one up to the
patch level of the installed SQL files: every schema change is a numbered
patch file, kych-oid4vp-000N.sql, registered with the Versioning
bookkeeping in the _v schema, and this tool applies those the database
does not have yet, in ascending order – the procedure of kych-dbinit(1) and
kych-trust-dbinit(1), on kych-oid4vp’s own database.
It is idempotent, and the Debian package runs it from its postinst on
every upgrade. It does not create the database or the role;
kych-oid4vp-dbconfig(1) does that once.
26.41.4. Options#
- -c CONFIG | –config=CONFIG
Use the configuration file CONFIG; see kych-oid4vp.conf(5). Only
DATABASEandSQL_DIRof the[kych-oid4vp]section are read.- -L LEVEL | –log=LEVEL
Set the logging verbosity. Defaults to
INFO.- -v | –verbose
Also log what the libraries have to say.
- –sql-dir=DIR
Read
versioning.sqland thekych-oid4vp-*.sqlpatches from DIR instead ofSQL_DIR(/usr/share/kych-oid4vp/sqlfor the package).- -n | –dry-run
Report which patches would be applied and change nothing.
- –print-connection
Print the connection the configuration names as
PGDATABASE,PGHOSTandPGPORTassignments for a shell, and exit without connecting.- -h | –help
Print short help.
- –version
Print version information.
26.41.5. Exit Status#
- 0
The database is at the latest patch level.
- 2
There is no database to work on: it does not exist, or no server listens where the configuration says. The
postinsttreats this as the state of a first install.- 1
Anything else; a failing patch is rolled back.
26.41.6. See Also#
kych-oid4vp(1), kych-oid4vp-dbconfig(1), kych-oid4vp.conf(5).
26.41.7. Bugs#
Report bugs by using https://bugs.taler.net/ or by sending electronic mail to <taler@gnu.org>.