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

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_LOGID_DIMUSRGRP') CREATE INDEX IDX_LOGID_DIMUSRGRP ON T_PERM_LOG_DIFF_DIMUSRGRP ( FPERM_LOGID );


 EXEC P_ALTERPK 'PK_PERM_LOG_DIFF_USRGRPU', 'T_PERM_LOG_DIFF_USRGRPU', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_LOGID_USRGRPU') CREATE INDEX IDX_LOGID_USRGRPU ON T_PERM_LOG_DIFF_USRGRPU ( FPERM_LOGID );



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