/**Begin D:\PDM_UPGRADE\PDM1\FA_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_FA_RPT_MEDIATE', 'T_FA_RPT_MEDIATE', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_FA_RPTM_ORG') CREATE INDEX IDX_FA_RPTM_ORG ON T_FA_RPT_MEDIATE ( FORGID ,FDEPREUSEID ,FPERIODID ,FMASTERID );

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_FA_RPTM_ASSETCAT') CREATE INDEX IDX_FA_RPTM_ASSETCAT ON T_FA_RPT_MEDIATE ( FASSETCATID ,FSOURCETYPE ,FPERIODID ,FDEPREUSEID ,FORGID );

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_FA_RPTM_ASSETNUMBER') CREATE INDEX IDX_FA_RPTM_ASSETNUMBER ON T_FA_RPT_MEDIATE ( FASSETNUMBER ,FORGID );

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_FA_RPTM_SOURCE') CREATE INDEX IDX_FA_RPTM_SOURCE ON T_FA_RPT_MEDIATE ( FSOURCEID ,FSOURCETYPE );



/**End D:\PDM_UPGRADE\PDM1\FA_constraint.sql **/
