/**Begin D:\pdm\PDM_UPGRADE\pdm_new\BDM_constraint.sql **/
 EXEC P_ALTERPK 'PK_BDM_SPECIAL_INV_CFG', 'T_BDM_SPECIAL_INV_CFG', 'FID', '0';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BDM_SPECIAL_INV_CFG0') CREATE INDEX IDX_BDM_SPECIAL_INV_CFG0 ON T_BDM_SPECIAL_INV_CFG ( FTAXCODE );

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BDM_SPECIAL_INV_CFG1') CREATE  CLUSTERED INDEX IDX_BDM_SPECIAL_INV_CFG1 ON T_BDM_SPECIAL_INV_CFG ( FNUMBER );


 EXEC P_ALTERPK 'PK_BDM_SPECIAL_INV_CFG_L', 'T_BDM_SPECIAL_INV_CFG_L', 'FPKID', '0';

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



/**End D:\pdm\PDM_UPGRADE\pdm_new\BDM_constraint.sql **/
