/**Begin D:\Users\rd_william_li\Documents\lipin\PDM\PDM_UPGRADE\pdm_new\BOS_constraint.sql **/

 EXEC P_ALTERPK 'PK_T_PERM_BUSIROLEGROUP', 'T_PERM_BUSIROLEGROUP', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_PERM_BUSIROLEGROUP') CREATE INDEX IDX_PERM_BUSIROLEGROUP ON T_PERM_BUSIROLEGROUP ( FNUMBER );


 EXEC P_ALTERPK 'PK_T_PERM_BUSIROLEGROUP_L', 'T_PERM_BUSIROLEGROUP_L', 'FPKID', '1';

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

/**End D:\Users\rd_william_li\Documents\lipin\PDM\PDM_UPGRADE\pdm_new\BOS_constraint.sql **/
