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

IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_FPSD_PERMLOGID') CREATE INDEX IDX_FPSD_PERMLOGID ON T_PERM_LOG_DIFF_FPSD ( FPERM_LOGID ,FENTITY_NAME );


EXEC P_ALTERPK 'PK_PERM_LOG_DIFF_FPS', 'T_PERM_LOG_DIFF_FPS', 'FID', '1';

IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_FPS_PERMLOGID') CREATE INDEX IDX_FPS_PERMLOGID ON T_PERM_LOG_DIFF_FPS ( FPERM_LOGID ,FENTITY_NAME );


EXEC P_ALTERPK 'PK_T_PERM_LOG_DIFF_DIMFPS', 'T_PERM_LOG_DIFF_DIMFPS', 'FID', '1';

IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_DIMFPS_PERMLOGID') CREATE INDEX IDX_DIMFPS_PERMLOGID ON T_PERM_LOG_DIFF_DIMFPS ( FPERM_LOGID ,FENTITY_NAME );



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