/**Begin D:\pdm\PDM_UPGRADE_1.1\PDM_UPGRADE\pdm1\BDM_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_BDM_GOODS_INFO_GROUP', 'T_BDM_GOODS_INFO_GROUP', 'FID', '0';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BDM_GOODS_INFO_GROUP_PID') CREATE  CLUSTERED INDEX IDX_BDM_GOODS_INFO_GROUP_PID ON T_BDM_GOODS_INFO_GROUP ( FPARENTID );


 EXEC P_ALTERPK 'PK_T_BDM_GOODS_INFO_GROUP_L', 'T_BDM_GOODS_INFO_GROUP_L', 'FPKID', '0';

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


/**End D:\pdm\PDM_UPGRADE_1.1\PDM_UPGRADE\pdm1\BDM_constraint.sql **/
