Files
UNIT3D-Community-Edition/database/seeds/ForumsTableSeeder.php
HDVinnie fcce37820e (Fix) Forums and Permissions Table Seeders
- This fixes forums bug with trying to create forums.
2018-01-18 18:26:08 -05:00

59 lines
1.6 KiB
PHP

<?php
use Illuminate\Database\Seeder;
class ForumsTableSeeder extends Seeder
{
/**
* Auto generated seed file
*
* @return void
*/
public function run()
{
\DB::table('forums')->delete();
\DB::table('forums')->insert(array (
0 =>
array (
'id' => 1,
'position' => 1,
'num_topic' => null,
'num_post' => null,
'last_topic_id' => null,
'last_topic_name' => null,
'last_topic_slug' => null,
'last_post_user_id' => null,
'last_post_user_username' => null,
'name' => 'UNIT3D Forums',
'slug' => 'unit3d-forums',
'description' => 'UNIT3D Forums',
'parent_id' => 0,
'created_at' => '2017-01-03 18:29:21',
'updated_at' => '2017-01-03 18:29:21',
),
1 =>
array (
'id' => 2,
'position' => 2,
'num_topic' => null,
'num_post' => null,
'last_topic_id' => null,
'last_topic_name' => null,
'last_topic_slug' => null,
'last_post_user_id' => null,
'last_post_user_username' => null,
'name' => 'Welcome',
'slug' => 'welcome',
'description' => 'Introduce Yourself Here!',
'parent_id' => 1,
'created_at' => '2017-04-01 20:16:06',
'updated_at' => '2017-12-27 18:19:07',
),
));
}
}