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

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BCM_LOGSET') CREATE INDEX IDX_BCM_LOGSET ON T_BCM_LOGSETTING ( FMODELID );


 EXEC P_ALTERPK 'PK_T_BCM_TRANSACTIONLOGSET', 'T_BCM_TRANSACTIONLOGSET', 'FEntryID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BCM_TRANLOGSET') CREATE INDEX IDX_BCM_TRANLOGSET ON T_BCM_TRANSACTIONLOGSET ( FID );



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