database seeds
This commit is contained in:
@@ -12,6 +12,8 @@ class DatabaseSeeder extends Seeder
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
// $this->call(UsersTableSeeder::class);
|
||||
$this->call([
|
||||
WikiTableSeeder::class,
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,46 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Seeder;
|
||||
|
||||
class WikiTableSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Run the database seeds.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
DB::table('wiki_user')->insert([
|
||||
'login' => 'nologin',
|
||||
'pass' => 'nopass',
|
||||
'name' => 'nologin',
|
||||
]);
|
||||
|
||||
DB::table('wiki_groupnames')->insert([
|
||||
'id' => '1',
|
||||
'gname' => 'user',
|
||||
]);
|
||||
|
||||
DB::table('wiki_groupnames')->insert([
|
||||
'id' => '2',
|
||||
'gname' => 'it',
|
||||
]);
|
||||
|
||||
DB::table('wiki_groupnames')->insert([
|
||||
'id' => '3',
|
||||
'gname' => 'fc',
|
||||
]);
|
||||
|
||||
DB::table('wiki_groupnames')->insert([
|
||||
'id' => '4',
|
||||
'gname' => 'admin',
|
||||
]);
|
||||
|
||||
DB::table('wiki_member')->insert([
|
||||
'uid' => '1',
|
||||
'gid' => '1',
|
||||
'gropuname' => 'user',
|
||||
]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user