/**Begin D:\DBA\1.4\PDM_UPGRADE\PDM1\BCM_constraint.sql **/

 EXEC P_ALTERPK 'PK_T_BCM_DSPINVELIMTEMPLATE', 'T_BCM_DSPINVELIMTEMPLATE', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_BCM_DSPINVELIMTEMPLATE' AND KSQL_INDNAME = 'IDX_BCM_DSPINVELIMTEMPLATE') CREATE INDEX IDX_BCM_DSPINVELIMTEMPLATE ON T_BCM_DSPINVELIMTEMPLATE ( FID );


 EXEC P_ALTERPK 'PK_T_BCM_DSPPAPERTEMPLATE', 'T_BCM_DSPPAPERTEMPLATE', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_BCM_DSPPAPERTEMPLATE' AND KSQL_INDNAME = 'IDX_BCM_DSPPAPERTEMPLATE') CREATE INDEX IDX_BCM_DSPPAPERTEMPLATE ON T_BCM_DSPPAPERTEMPLATE ( FID );



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