shish 6 жил өмнө
parent
commit
0b1ca93d10

+ 2 - 2
console/controllers/UpgradeController.php

@@ -795,6 +795,7 @@ ALTER TABLE `xhMerchantCapital` MODIFY `io` TINYINT NOT NULL DEFAULT 0 COMMENT '
 		$sql = "ALTER TABLE `xhUserCapital` MODIFY `relateId` INT NOT NULL DEFAULT 0 COMMENT '关联id;订单id';";
 		Yii::$app->db->createCommand($sql)->execute();
 
+		//客户成长值
 		$userGrowth = UserGrowthService::getAllByCondition([],null,'*','relateId');
 		if (!empty($userGrowth)) {
 			foreach ($userGrowth as $relateId => $growth) {
@@ -808,10 +809,9 @@ ALTER TABLE `xhMerchantCapital` MODIFY `io` TINYINT NOT NULL DEFAULT 0 COMMENT '
 				}
 			}
 		}
-		$sql = "ALTER TABLE `xhUserCapital` MODIFY `relateId` INT NOT NULL DEFAULT 0 COMMENT '关联id';";
+		$sql = "ALTER TABLE `UserGrowthService` MODIFY `relateId` INT NOT NULL DEFAULT 0 COMMENT '关联id';";
 		Yii::$app->db->createCommand($sql)->execute();
 
-		
 		if ($num == 2) {
 			$this->actionInit2();
 		}