torrents list show seedbox icon

This commit is contained in:
xiaomlove
2022-09-02 19:49:41 +08:00
parent 17b225424e
commit 875e8ea797
19 changed files with 180 additions and 39 deletions

View File

@@ -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');
});
}
};

View File

@@ -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,
])
),
));
}
}
}