12345678910111213141516171819202122232425 |
- <?php
- use think\migration\Seeder;
- class AddInitPageVisitSeeder extends Seeder
- {
- /**
- * Run Method.
- *
- * Write your database seeder using this method.
- *
- * More information on writing seeders is available here:
- * http://docs.phinx.org/en/latest/seeding.html
- */
- public function run()
- {
- echo "开始创建数据 \n";
- $ret = \app\store\model\analysis\AnalysisPageVisit::addInitVisit();
- if (!$ret) {
- echo "执行失败!\n";
- } else {
- echo "执行成功\n";
- }
- }
- }
|