/**Begin D:\PDM_UPGRADE\PDM1\BCM_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_BCM_ISDATATRACE_FROM', 'T_BCM_ISDATATRACE_FROM', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BCM_ISDATATRACE_MS') CREATE INDEX IDX_BCM_ISDATATRACE_MS ON T_BCM_ISDATATRACE_FROM ( FMODELID ,FSEARCHKEY );


 EXEC P_ALTERPK 'PK_T_BCM_ERRORLOG', 'T_BCM_ERRORLOG', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BCM_ERRORLOG') CREATE INDEX IDX_BCM_ERRORLOG ON T_BCM_ERRORLOG ( FTRACEID );



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