To illustrate how to easily extend the database for IdentityIQ (IIQ), I will use the example of expanding the database for the Provisioning Simulator.
This guide will walk you through the necessary steps to implement changes related to the new spt_provisioning_record
table, ensuring a smooth and efficient deployment process.
As part of the upcoming deployment for any environment, it is necessary to implement changes to the database, specifically related to the new spt_provisioning_record
table. Please follow these steps carefully:
- After deploy:
- Navigate to the
/bin
directory with IdentityIQ (IIQ) console:
- Execute Schema Changes:
- Once inside the IIQ console, execute the schema update command:
- ./iiq schema
- Locate Database Scripts:
- Open the
WEB-INF/database/
directory. - Find the file named
create_identityiq_tables.sqlserver
. (without iiq version in the file name)
- Identify Table Commands:
- Use the following command to search for the
spt_provisioning_record
table commands within thecreate_identityiq_tables.sqlserver
file: - cat create_identityiq_tables.sqlserver | grep -20 spt_provisioning_record
- This command will display the relevant database scripts for creating the table, indexes, constraints, etc.
- Handle Existing Table:
- If the
spt_provisioning_record
table already exists, you must remove the existing table along with any associated indexes and constraints.
- Create the New Table:
- Use the scripts identified in step 4 to create the new
spt_provisioning_record
table, along with its indexes and constraints.
- Restart Tomcat:
- Finally, restart the Tomcat server to apply the changes.