<<

NAME

misc/devel/update_dbix_class_files.pl

SYNOPSIS

 update_dbix_class_files.pl [--koha-conf <path>] --db_name=db-name \
                            --db_user=db-user --db_passwd=db-pass ...

The command in usually called from the root directory for the Koha source tree. If you are running from another directory, use the --path switch to specify a different path.

OPTIONS

--koha-conf <path>

Path to koha-conf.xml from which DB connection params will be retrieved.

<path> is optional and defaults to the value of environment variable KOHA_CONF, if set. It is an error to omit the <path> if KOHA_CONF is not set.

Any --db_* options will override values retrieved from <path>.

--db_name

DB name. (mandatory)

--db_user

DB user name.

--db_passwd

DB password.

--db_driver

DB driver to be used. (defaults to 'mysql')

--db_host

hostname for the DB server. (defaults to 'localhost')

--db_port

port number for the DB server. (defaults to '3306')

--path

path into which create the schema files. (defaults to './')

--force

Force a schema overwrite.

WARNING: Use this at your own risk! it's helpful if you are maintaining a fork or in other such cases. You should always attempt to run the script without force first and only resort to using force if that fails. It is also very much worthwhile checking the diff after running with force to ensure you have not resulted in any unexpected changes.

-h|--help

prints this help text

<<