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

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BCM_FUNCPERMLOG') CREATE INDEX IDX_BCM_FUNCPERMLOG ON T_BCM_FUNCTIONPERMLOG ( FMODELID ,FMODIFIERID );


 EXEC P_ALTERPK 'PK_T_BCM_DATAPERMLOG', 'T_BCM_DATAPERMLOG', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BCM_DATAPERMLOG') CREATE INDEX IDX_BCM_DATAPERMLOG ON T_BCM_DATAPERMLOG ( FMODELID ,FMODIFIERID );



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