mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-19 08:10:49 +08:00
recover ptGen
This commit is contained in:
@@ -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();
|
||||
});
|
||||
}
|
||||
|
||||
@@ -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) {
|
||||
//
|
||||
});
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user