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

 EXEC P_ALTERPK 'PK_BD_BIZTCONF', 'T_BD_BIZTCONF', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BD_BIZTNF_FNUMBER') CREATE INDEX IDX_BD_BIZTNF_FNUMBER ON T_BD_BIZTCONF ( FNUMBER );

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BD_BIZTNF_FCREATETIME') CREATE INDEX IDX_BD_BIZTNF_FCREATETIME ON T_BD_BIZTCONF ( FCREATETIME );

 EXEC P_ALTERPK 'PK_BD_BIZTCONF_L', 'T_BD_BIZTCONF_L', 'FPKID', '1';

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

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BD_BIZTNFL_FNAME') CREATE INDEX IDX_BD_BIZTNFL_FNAME ON T_BD_BIZTCONF_L ( FNAME );



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