增加访问分析缓存

This commit is contained in:
2023-07-08 09:22:29 +08:00
parent f534c7c473
commit 944000ecce
6 changed files with 78 additions and 4 deletions

View File

@@ -1,6 +1,7 @@
<?php
use app\common\ColumnFormat;
use think\migration\db\Column;
use think\migration\Migrator;
class CreateTablePostVisit extends Migrator
@@ -37,6 +38,12 @@ class CreateTablePostVisit extends Migrator
$table->addColumn(ColumnFormat::stringNormal('uid'));
$table->addColumn(ColumnFormat::stringNormal('nickname'));
$table->addColumn(ColumnFormat::stringUrl('avatar'));
$table->addColumn(ColumnFormat::stringNormal('client_bot'));
$table->addColumn(Column::text('client'));
$table->addColumn(Column::text('client_os'));
$table->addColumn(ColumnFormat::stringNormal('client_device_name'));
$table->addColumn(ColumnFormat::stringNormal('client_brand_name'));
$table->addColumn(ColumnFormat::stringNormal('client_model'));
$table->addIndex('delete_time');
$table->addIndex('post_id');
$table->addIndex('ip');