mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-15 13:32:41 +08:00
torrents list show seedbox icon
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::table('searchbox', function (Blueprint $table) {
|
||||
$table->text('extra')->nullable();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::table('searchbox', function (Blueprint $table) {
|
||||
$table->dropColumn('extra');
|
||||
});
|
||||
}
|
||||
};
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace Database\Seeders;
|
||||
|
||||
use App\Models\SearchBox;
|
||||
use Illuminate\Database\Seeder;
|
||||
|
||||
class SearchboxTableSeeder extends Seeder
|
||||
@@ -14,12 +15,12 @@ class SearchboxTableSeeder extends Seeder
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
|
||||
|
||||
|
||||
\DB::table('searchbox')->delete();
|
||||
|
||||
|
||||
\DB::table('searchbox')->insert(array (
|
||||
0 =>
|
||||
0 =>
|
||||
array (
|
||||
'id' => 4,
|
||||
'name' => 'chd',
|
||||
@@ -36,9 +37,12 @@ class SearchboxTableSeeder extends Seeder
|
||||
'custom_fields' => '',
|
||||
'custom_fields_display_name' => '',
|
||||
'custom_fields_display' => '',
|
||||
'extra' => json_encode([
|
||||
SearchBox::EXTRA_DISPLAY_COVER_ON_TORRENT_LIST => 1,
|
||||
])
|
||||
),
|
||||
));
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user