mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 12:07:23 +08:00
add seeders and migrations + rhilip/bencode
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Seeders;
|
||||
|
||||
use Illuminate\Database\Seeder;
|
||||
|
||||
class AgentAllowedExceptionTableSeeder extends Seeder
|
||||
{
|
||||
|
||||
/**
|
||||
* Auto generated seed file
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
|
||||
|
||||
\DB::table('agent_allowed_exception')->delete();
|
||||
|
||||
\DB::table('agent_allowed_exception')->insert(array (
|
||||
0 =>
|
||||
array (
|
||||
'family_id' => 16,
|
||||
'name' => 'uTorrent 1.80B (Build 6838)',
|
||||
'peer_id' => '-UT180B-',
|
||||
'agent' => 'uTorrent/180B(6838)',
|
||||
'comment' => 'buggy build that always seeding bad request',
|
||||
),
|
||||
));
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user