<?php
use think\migration\Seeder;
class SystemBase 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()
{
// 设置数据
$rows[] = [
'create_time' => time(),
'update_time' => time(),
'title' => '学生成绩统计系统',
'keywords' => '成绩统计,成绩管理',
'description' => '适合我们的才是好用的',
'thinks' => 'H-ui前端框架、ThinkPhp框架',
'danwei' => '大连长兴岛经济区教科培中心',
];
// 保存数据
$this->table('system_base')->insert($rows)->save();
}
}