/**Begin D:\softwaresetup\PDM_UPGRADE\PDM1\FPM_constraint.sql **/
 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_REPORTORG') CREATE INDEX IDX_REPORTORG ON T_FPM_REPORT ( FREPORTORG );

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_REPORTPERIOD') CREATE INDEX IDX_REPORTPERIOD ON T_FPM_REPORT ( FREPORTPERIOD );

 EXEC P_ALTERPK 'PK_T_FPM_REPORT_PERIOD', 'T_FPM_REPORT_PERIOD', 'FPKID', '1';

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


/**End D:\softwaresetup\PDM_UPGRADE\PDM1\FPM_constraint.sql **/
