recover ptGen

This commit is contained in:
xiaomlove
2025-05-16 02:43:45 +07:00
parent 47f453335d
commit d123e8a849
19 changed files with 140 additions and 41 deletions

View File

@@ -17,6 +17,7 @@ return new class extends Migration
$table->mediumText('descr');
$table->text('media_info')->nullable();
$table->binary('nfo')->nullable();
$table->mediumText('pt_gen')->nullable();
$table->timestamps();
});
}

View File

@@ -0,0 +1,30 @@
<?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('torrent_extras', function (Blueprint $table) {
if (!Schema::hasColumn('torrent_extras', 'pt_gen')) {
$table->mediumText('pt_gen')->nullable()->after('nfo');
}
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('torrent_extras', function (Blueprint $table) {
//
});
}
};