NAME

pmx-schema - A utility for initializing and displaying the PMX database schema.


SYNOPSIS

  pmx-schema <cmd> [arguments] [options]...


DESCRIPTION

This utility initializes a new PMX database, drops all the tables from an existing PMX database, sets the dsn for the database, and provides the SQL statements required to create and drop the tables (or indexes) from the database.


COMMANDS

init <dsn> [--store-id=<store-id>]
Establishes database connection using the specified dsn string and initializes the database by creating tables, constraints, indexes, triggers, stored procedures, etc. Optional arguments can be specified as store-id to name the database that has been initialized. The default database name is pmx_quarantine.

drop <dsn> [--force|-f]
Establishes database connection using the specified dsn string and drops all the PMX tables from this database. User is prompted for confirmation before the actual deletes occur, unless the option force is used.

dsn [--store-id=id]
Prints the dsn for the store. store-id can be specified if multiple databases are installed (the default is pmx_quarantine).


COPYRIGHT

Copyright (C) 2000-2009 Sophos Group. All rights reserved. Sophos and PureMessage are trademarks of Sophos Plc and Sophos Group.