You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
66 lines
1.7 KiB
66 lines
1.7 KiB
<?php
|
|
|
|
use Illuminate\Database\Seeder;
|
|
|
|
class ShopCommentTableSeeder extends Seeder
|
|
{
|
|
|
|
/**
|
|
* Auto generated seed file
|
|
*
|
|
* @return void
|
|
*/
|
|
public function run()
|
|
{
|
|
|
|
|
|
\DB::table('shop_comment')->delete();
|
|
|
|
\DB::table('shop_comment')->insert(array (
|
|
0 =>
|
|
array (
|
|
'id' => 1,
|
|
'type_id' => 0,
|
|
'value_id' => 1,
|
|
'content' => 'abc',
|
|
'add_time' => '2018-06-14 20:18:59',
|
|
'status' => 1,
|
|
'user_id' => 0,
|
|
'new_content' => '',
|
|
'sort_order' => 255,
|
|
'created_at' => '2018-06-14 20:18:59',
|
|
'updated_at' => NULL,
|
|
),
|
|
1 =>
|
|
array (
|
|
'id' => 2,
|
|
'type_id' => 0,
|
|
'value_id' => 1,
|
|
'content' => 'asdfs',
|
|
'add_time' => '2018-06-14 20:18:59',
|
|
'status' => 1,
|
|
'user_id' => 0,
|
|
'new_content' => '',
|
|
'sort_order' => 255,
|
|
'created_at' => '2018-06-14 20:19:02',
|
|
'updated_at' => '2018-06-14 20:19:02',
|
|
),
|
|
2 =>
|
|
array (
|
|
'id' => 3,
|
|
'type_id' => 0,
|
|
'value_id' => 1,
|
|
'content' => 'fds',
|
|
'add_time' => '2018-06-14 20:18:59',
|
|
'status' => 1,
|
|
'user_id' => 0,
|
|
'new_content' => '',
|
|
'sort_order' => 255,
|
|
'created_at' => '2018-06-14 20:19:06',
|
|
'updated_at' => '2018-06-14 20:19:02',
|
|
),
|
|
));
|
|
|
|
|
|
}
|
|
} |