/**Begin D:\PDM_UPGRADE\PDM1\BEI_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_BEI_ACCUFAVORITE', 'T_BEI_ACCUFAVORITE', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BEI_ACCUFAVORITE') CREATE INDEX IDX_BEI_ACCUFAVORITE ON T_BEI_ACCUFAVORITE ( FCREATORID );


 EXEC P_ALTERPK 'PK_T_BEI_ACCUFAVORITE_L', 'T_BEI_ACCUFAVORITE_L', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BEI_ACCUFAVORITE_L_0') CREATE INDEX IDX_BEI_ACCUFAVORITE_L_0 ON T_BEI_ACCUFAVORITE_L ( FID ,FLOCALEID );



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