feat: enhance torrent state scheduling and display

Signed-off-by: Qi HU <github@spcsky.com>
This commit is contained in:
Qi HU
2025-12-07 12:57:08 +08:00
parent f098ef72b5
commit 2346afa291
13 changed files with 436 additions and 47 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.
*/
public function up(): void
{
Schema::table('torrents_state', function (Blueprint $table) {
if (!Schema::hasColumn('torrents_state', 'remark')) {
$table->string('remark')->nullable()->after('deadline');
}
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('torrents_state', function (Blueprint $table) {
if (Schema::hasColumn('torrents_state', 'remark')) {
$table->dropColumn('remark');
}
});
}
};