/**Begin D:\pdm\PDM_UPGRADE_1.1\PDM_UPGRADE\pdm1\BDM_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_BDM_GOODS_INFO_L', 'T_BDM_GOODS_INFO_L', 'FPKID', '0';

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

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BDM_GOODS_INFO_MASTERID') CREATE INDEX IDX_BDM_GOODS_INFO_MASTERID ON T_BDM_GOODS_INFO ( FMASTERID );
/**End D:\pdm\PDM_UPGRADE_1.1\PDM_UPGRADE\pdm1\BDM_constraint.sql **/
