Przeglądaj źródła

统计表字段的修改

shish 6 lat temu
rodzic
commit
fc4c89067a
2 zmienionych plików z 35 dodań i 0 usunięć
  1. 18 0
      app/business/controllers/ConsoleController.php
  2. 17 0
      sql.txt

+ 18 - 0
app/business/controllers/ConsoleController.php

@@ -0,0 +1,18 @@
+<?php
+
+namespace business\controllers;
+
+use Yii;
+use common\components\util;
+
+class ConsoleController extends BaseController
+{
+
+	//概况 shish 2019.12.19
+	public function actionProfile()
+	{
+		$data = [];
+		util::success($data);
+	}
+
+}

+ 17 - 0
sql.txt

@@ -1,3 +1,20 @@
+2019.12.19 统计表的变更 注意线上哪些统计相关的表有数据,要转化!!!
+RENAME TABLE `xhStatOrderByDay` TO `xhStatOrder`;
+RENAME TABLE `xhStatOrderSourceByDay` TO `xhStatOrderSource`;
+RENAME TABLE `xhStatUserByDay` TO `xhStatUser`;
+RENAME TABLE `xhStatViewByDay` TO `xhStatView`;
+RENAME TABLE `xhStatViewSourceByDay` TO `xhStatViewSource`;
+RENAME TABLE `xhStatVisitByDay` TO `xhStatVisit`;
+RENAME TABLE `xhStatOutDay` TO `xhStatOut`;
+RENAME TABLE `xhStatInDay` TO `xhStatIn`;
+RENAME TABLE `xhStatDealByDay` TO `xhStatDeal`;
+drop table if exists `xhStatDeal`;
+DROP TABLE IF EXISTS `xhStatView`;
+DROP TABLE IF EXISTS `xhStatViewSource`;
+DROP TABLE IF EXISTS `xhStatVisit`;
+RENAME TABLE `xhVisitByDay` TO `xhStatVisit`;
+RENAME TABLE `xhVisitByMonth` TO `xhStatVisitMonth`;
+
 2019.12.19 shish 微信菜单相关
 ALTER TABLE `xhWxMenu` MODIFY `replyType` TINYINT NOT NULL DEFAULT 0 COMMENT '回复给粉丝的类型 0跳转链接 1文字 2单图文';
 ALTER TABLE `xhWxMenu` DROP COLUMN `targetId`;