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

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BCM_UNIONPERMTREE') CREATE INDEX IDX_BCM_UNIONPERMTREE ON T_BCM_UNIONPERMTREE ( FAPPNUMBER );


 EXEC P_ALTERPK 'PK_T_BCM_UNIONPERMTREE_L', 'T_BCM_UNIONPERMTREE_L', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BCM_UNIONPERMTREE_L') CREATE INDEX IDX_BCM_UNIONPERMTREE_L ON T_BCM_UNIONPERMTREE_L ( FID ,FLOCALEID );


 EXEC P_ALTERPK 'PK_T_BCM_AUTH_DATAENTRY', 'T_BCM_AUTH_DATAENTRY', 'FEntryID', '1';

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



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