/**Begin D:\PDM\PDM_UPGRADE\pdm1\BCM_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_BCM_PAPERTPLFIELD', 'T_BCM_PAPERTPLFIELD', 'FENTRYID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_T_BCM_PAPERTPLFIELD') CREATE INDEX IDX_T_BCM_PAPERTPLFIELD ON T_BCM_PAPERTPLFIELD ( FID ,FEXTMODELID );


 EXEC P_ALTERPK 'PK_T_BCM_PAPERTPLFIELD_L', 'T_BCM_PAPERTPLFIELD_L', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_T_BCM_PAPERTPLFIELD_L') CREATE INDEX IDX_T_BCM_PAPERTPLFIELD_L ON T_BCM_PAPERTPLFIELD_L ( FENTRYID );



/**End D:\PDM\PDM_UPGRADE\pdm1\BCM_constraint.sql **/
