![]() |
BillMax Billing Solutions 877.245.5629 sales@billmax.com |
alterdb — Modify/Create a BillMax database
/usr/local/billmax/bin/alterdb [-h] [-c] [-d] [-u database] [-t table
[-q]
] [-s] [-v] [file]
alterdb creates a new database based on a database schema or modifies an existing database to conform to a database schema. alterdb will always modify the indices of a table to match those in the database schema.
-hShow help for this program.
-c
Capture the database schema of the specified database and write the resulting schema to in the form similar to /usr/local/billmax/cfg/dbschema. file may then be used as input to create a copy of the database schema in another database.
file
-u databaseSpecify the database to create, modify or examine. If this parameter is not specified, then the database specified in /usr/local/billmax/local/billmax.conf is used.
-t table
Create the database table table based on information in .
file
-q
Create a table using a generated unique name. The name is derived from table specified with the -t. The unique tablename is printed to stdout.
-vPrints the database commands that are executed.
-sRun in safe mode. Print the database commands that would be executed.
-dThe following actions are taken:
Delete tables in the database that are not in file.
Delete fields from tables in the database that are not in file.
fileThe name of the database schema file. The default is /usr/local/billmax/cfg/dbschema.