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.