torrents table deprecate field tags

This commit is contained in:
xiaomlove
2022-03-09 21:52:21 +08:00
parent 0683c2ae4e
commit 0db45b2d1f
2 changed files with 4 additions and 4 deletions
@@ -58,7 +58,7 @@ class CreateTorrentsTable extends Migration
$table->dateTime('picktime')->nullable(); $table->dateTime('picktime')->nullable();
$table->dateTime('last_reseed')->nullable(); $table->dateTime('last_reseed')->nullable();
$table->mediumText('pt_gen')->nullable(); $table->mediumText('pt_gen')->nullable();
$table->integer('tags')->default(0); // $table->integer('tags')->default(0);
$table->text('technical_info')->nullable(); $table->text('technical_info')->nullable();
$table->index(['visible', 'pos_state', 'id'], 'visible_pos_id'); $table->index(['visible', 'pos_state', 'id'], 'visible_pos_id');
$table->index(['category', 'visible', 'banned'], 'category_visible_banned'); $table->index(['category', 'visible', 'banned'], 'category_visible_banned');
@@ -17,9 +17,9 @@ class AddPtGenTagsTechnicalInfoToTorrentsTable extends Migration
if (!Schema::hasColumn('torrents', 'pt_gen')) { if (!Schema::hasColumn('torrents', 'pt_gen')) {
$table->mediumText('pt_gen')->nullable(); $table->mediumText('pt_gen')->nullable();
} }
if (!Schema::hasColumn('torrents', 'tags')) { // if (!Schema::hasColumn('torrents', 'tags')) {
$table->integer('tags')->default(0); // $table->integer('tags')->default(0);
} // }
if (!Schema::hasColumn('torrents', 'technical_info')) { if (!Schema::hasColumn('torrents', 'technical_info')) {
$table->text('technical_info')->nullable(); $table->text('technical_info')->nullable();
} }