25 lines
490 B
Plaintext
25 lines
490 B
Plaintext
<?php
|
|
|
|
use think\migration\Seeder;
|
|
|
|
class PermissionSeed 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()
|
|
{
|
|
\catcher\Utils::importTreeData($this->getPermissions(), 'permissions', 'parent_id');
|
|
}
|
|
|
|
protected function getPermissions()
|
|
{
|
|
{DATA}
|
|
}
|
|
}
|