/**Begin D:\DBA\1.4\PDM_UPGRADE\PDM1\BCM_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_BCM_DATATRACESCHEME', 'T_BCM_DATATRACESCHEME', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_BCM_DATATRACESCHEME' AND KSQL_INDNAME = 'IDX_BCM_DATATRACESCHEME') CREATE INDEX IDX_BCM_DATATRACESCHEME ON T_BCM_DATATRACESCHEME ( FMODELID ,FCREATORID );


 EXEC P_ALTERPK 'PK_T_BCM_DATATRACESCHEME_L', 'T_BCM_DATATRACESCHEME_L', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_BCM_DATATRACESCHEME_L' AND KSQL_INDNAME = 'IDX_BCM_DATATRACESCHEME_L') CREATE INDEX IDX_BCM_DATATRACESCHEME_L ON T_BCM_DATATRACESCHEME_L ( FID ,FLOCALEID );


 EXEC P_ALTERPK 'PK_T_BCM_DATATRACEEXPANDPATH', 'T_BCM_DATATRACEEXPANDPATH', 'FENTRYID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_BCM_DATATRACEEXPANDPATH' AND KSQL_INDNAME = 'IDX_BCM_DATATRACEEXPANDPATH') CREATE INDEX IDX_BCM_DATATRACEEXPANDPATH ON T_BCM_DATATRACEEXPANDPATH ( FID ,FPROCESSID );



/**End D:\DBA\1.4\PDM_UPGRADE\PDM1\BCM_constraint.sql **/
