123456789101112131415161718192021 |
- <?php
- use app\api\model\GoodsVisitStatistics;
- use think\migration\Seeder;
- class AddInitGoodsVisitStatisticsSeeder extends Seeder
- {
- /**
- * 商品浏览统计初始数据填充
- *
- * More information on writing seeders is available here:
- * http://docs.phinx.org/en/latest/seeding.html
- */
- public function run()
- {
- echo "开始创建数据 \n";
- GoodsVisitStatistics::addInitVisit();
- echo "创建数据完成 \n";
- }
- }
|