/**Begin D:\PDM_UPGRADE\pdm_new\BOS_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_PERM_USRGRPREL_RULEENT', 'T_PERM_USRGRPREL_RULEENT', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_PERM_USRGRPREL_RUENT') CREATE INDEX IDX_PERM_USRGRPREL_RUENT ON T_PERM_USRGRPREL_RULEENT ( FUSRGRPID );


 EXEC P_ALTERPK 'PK_T_PERM_USRGRPSTD', 'T_PERM_USRGRPSTD', 'FID', '1';

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


 EXEC P_ALTERPK 'PK_T_PERM_USRGRPSTD_L', 'T_PERM_USRGRPSTD_L', 'FPKID', '1';

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


 EXEC P_ALTERPK 'PK_T_PERM_USRGRPSTD_RELSYN', 'T_PERM_USRGRPSTD_RELSYN', 'FENTRYID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_PERM_USRGRPREF_RELSYN') CREATE INDEX IDX_PERM_USRGRPREF_RELSYN ON T_PERM_USRGRPSTD_RELSYN ( FSRCENTITY );



/**End D:\PDM_UPGRADE\pdm_new\BOS_constraint.sql **/
