|
|
@@ -1135,20 +1135,30 @@ update xhMerchant set merchantName='花店宝' where id=12358;update xhShop set
|
|
|
TMessageService::deleteByCondition(['merchantId' => 12358]);
|
|
|
UserService::deleteByCondition(['merchantId' => 12358]);
|
|
|
WxMenuService::deleteByCondition(['merchantId' => 12358]);
|
|
|
+ OrderService::deleteByCondition(['merchantId' => 12358]);
|
|
|
TMessageService::deleteByCondition(['merchantId' => 12359]);
|
|
|
UserService::deleteByCondition(['merchantId' => 12359]);
|
|
|
WxMenuService::deleteByCondition(['merchantId' => 12359]);
|
|
|
+ OrderService::deleteByCondition(['merchantId' => 12359]);
|
|
|
}
|
|
|
if ($env == 'test') {
|
|
|
TMessageService::deleteByCondition(['merchantId' => 12358]);
|
|
|
UserService::deleteByCondition(['merchantId' => 12358]);
|
|
|
WxMenuService::deleteByCondition(['merchantId' => 12358]);
|
|
|
+ OrderService::deleteByCondition(['merchantId' => 12358]);
|
|
|
TMessageService::deleteByCondition(['merchantId' => 12359]);
|
|
|
UserService::deleteByCondition(['merchantId' => 12359]);
|
|
|
WxMenuService::deleteByCondition(['merchantId' => 12359]);
|
|
|
+ OrderService::deleteByCondition(['merchantId' => 12359]);
|
|
|
}
|
|
|
+
|
|
|
+ //用户删除概念的提出
|
|
|
+ $sql = "ALTER TABLE xhUser ADD `delStatus` TINYINT NOT NULL DEFAULT 0 COMMENT '删除状态 0未删除 1已删除' AFTER `addPrecision`;
|
|
|
+UPDATE xhUser SET delStatus=1 WHERE merchantId=0;";
|
|
|
+ Yii::$app->db->createCommand($sql)->execute($sql);
|
|
|
+
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
//数据迁移 shish 2020.1.12
|
|
|
//./yii upgrade/sync
|
|
|
public function actionSync()
|