mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 12:30:49 +08:00
add seeders and migrations + rhilip/bencode
This commit is contained in:
37
database/seeders/CaticonsTableSeeder.php
Normal file
37
database/seeders/CaticonsTableSeeder.php
Normal file
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Seeders;
|
||||
|
||||
use Illuminate\Database\Seeder;
|
||||
|
||||
class CaticonsTableSeeder extends Seeder
|
||||
{
|
||||
|
||||
/**
|
||||
* Auto generated seed file
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
|
||||
|
||||
\DB::table('caticons')->delete();
|
||||
|
||||
\DB::table('caticons')->insert(array (
|
||||
0 =>
|
||||
array (
|
||||
'id' => 1,
|
||||
'name' => 'SceneTorrents mod',
|
||||
'folder' => 'scenetorrents/',
|
||||
'cssfile' => 'pic/category/chd/scenetorrents/catsprites.css',
|
||||
'multilang' => 'yes',
|
||||
'secondicon' => 'no',
|
||||
'designer' => 'NexusPHP',
|
||||
'comment' => 'Modified from SceneTorrents',
|
||||
),
|
||||
));
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user