/**Begin D:\DBA\PDM_UPGRADE\PDM1\BCM_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_BCM_INVCASEPAGEDIMRUN', 'T_BCM_INVCASEPAGEDIMRUN', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BCM_INVCASEPAGEDIMRUN') CREATE INDEX IDX_BCM_INVCASEPAGEDIMRUN ON T_BCM_INVCASEPAGEDIMRUN ( FPAGEDIMID );

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BCM_INVCASEPAGEDIMFMODEL') CREATE INDEX IDX_BCM_INVCASEPAGEDIMFMODEL ON T_BCM_INVCASEPAGEDIMRUN ( FMODEL ,FENTITY ,FPERIOD ,FYEAR ,FSCENARIO );



/**End D:\DBA\PDM_UPGRADE\PDM1\BCM_constraint.sql **/
