PrizmDoc v12.4 - Updated
Set up Your Database for use with PrizmDoc Application Services
Developer Guide > PrizmDoc Application Services > Set up Your Database for use with PrizmDoc Application Services

How to set up your database for use with PrizmDoc Application Services

For information on configuring PAS to communicate with your database, see the PAS Configuration section in the help file.

Creating the required database tables

Some databases, like Microsoft SQL Server, require that the tables be created before PAS can use them. This is a manual step.

The easiest way to create the tables is to run the scripts available as part of PAS.

On Windows:

cd C:\Prizm\pas\db
createtables.cmd

On Linux:

cd /usr/share/prizm/pas/db
./createtables.sh

This will create the required tables in the database that is configured through the PAS configuration file. If you need to change any of the configuration temporarily when running these scripts (such as using a different user that has the required privileges to create tables), you can specify any of the database.* properties from the PAS configuration file as command line flags, as such:

createtables.cmd --user=createTablesUser --password=Pa55w0rd

./createtables.sh --user=createTablesUser --password=Pa55w0rd

Note that the create tables scripts should be run after each upgrade of Prizmdoc to be sure the schema is up to date

Advanced use

For advances database administrators, you may want to inspect and manually run the SQL scripts to create tables. You can use this by adding the --export-scripts flag to the above commands, as such (the commands below work on both Windows and Linux using the appropriate script):

./createtables.sh --export-scripts --filepath=/path/to/script.sql

When running this command, the configured database will not be changed, and the script will be saved to the output file specified. These SQL scripts can be found:

On Windows:

C:\Prizm\pas\db\mssql-scripts

On Linux:

/usr/share/prizm/pas/db/mssql-scripts