123456789101112131415161718192021222324 |
- <?php
- use app\api\model\ChannelSaleStatistics;
- use think\migration\Seeder;
- class AddInitChannelSaleStatisticsSeeder extends Seeder
- {
- /**
- * 活动效果统计初始数据填充
- *
- * More information on writing seeders is available here:
- * http://docs.phinx.org/en/latest/seeding.html
- */
- public function run()
- {
- echo "开始创建数据 \n";
- $ret = ChannelSaleStatistics::addInitData();
- if (!$ret) {
- echo "执行失败!\n";
- } else {
- echo "执行成功\n";
- }
- }
- }
|