Guide - 7.10 Migration PO - Local Index and Constraint Changes

Table of Contents

Product Version

7.10

Product To Version

7.10
Status

final

1 Changes

The code generator has been changed. All PO-related indexes and constraints are generated on PO level instead of on cartridge level and have specific ones for the database type.

For instance the generator for the BasicProfilePO now generates the following files:

BasicProfilePO.dbconstraints.microsoft.ddl
BasicProfilePO.dbconstraints.oracle.ddl
BasicProfilePO.dbindex.microsoft.ddl
BasicProfilePO.dbindex.oracle.ddl

The custom generating section still needs to be located on cartridge level as before.

Example of dbconstraints.ddl in bc_dashboard_orm:

/*------------------------------------------------------------------------
                           custom constraints section
------------------------------------------------------------------------*/

-- //{{ constraints
EXEC staging_ddl.add_constraint('DASHBOARD','DASHBOARD_CO999','FOREIGN KEY (USERID) REFERENCES BASICPROFILE (UUID) INITIALLY DEFERRED DEFERRABLE DISABLE NOVALIDATE');
-- //}} constraints


To adapt the changes, you need to re-generate the code with an updated Intershop Studio. 

Disclaimer

The information provided in the Knowledge Base may not be applicable to all systems and situations. Intershop Communications will not be liable to any party for any direct or indirect damages resulting from the use of the Customer Support section of the Intershop Corporate Web site, including, without limitation, any lost profits, business interruption, loss of programs or other data on your information handling system.

Customer Support
Knowledge Base
Product Resources
Tickets