/**Begin D:\PDM_UPGRADE\PDM1\BEI_constraint.sql **/

 EXEC P_ALTERPK 'PK_T_BEI_OCRBANKSTATE_SET', 'T_BEI_OCRBANKSTATE_SET', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_T_BEI_OCRBANKSTATE_SET') CREATE INDEX IDX_T_BEI_OCRBANKSTATE_SET ON T_BEI_OCRBANKSTATE_SET ( FENABLE );


 EXEC P_ALTERPK 'PK_T_BEI_OCRBANKSTATE_SET_L', 'T_BEI_OCRBANKSTATE_SET_L', 'FPKID', '1';

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

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