mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 20:40:49 +08:00
torrents table deprecate field tags
This commit is contained in:
@@ -58,7 +58,7 @@ class CreateTorrentsTable extends Migration
|
||||
$table->dateTime('picktime')->nullable();
|
||||
$table->dateTime('last_reseed')->nullable();
|
||||
$table->mediumText('pt_gen')->nullable();
|
||||
$table->integer('tags')->default(0);
|
||||
// $table->integer('tags')->default(0);
|
||||
$table->text('technical_info')->nullable();
|
||||
$table->index(['visible', 'pos_state', 'id'], 'visible_pos_id');
|
||||
$table->index(['category', 'visible', 'banned'], 'category_visible_banned');
|
||||
|
||||
@@ -17,9 +17,9 @@ class AddPtGenTagsTechnicalInfoToTorrentsTable extends Migration
|
||||
if (!Schema::hasColumn('torrents', 'pt_gen')) {
|
||||
$table->mediumText('pt_gen')->nullable();
|
||||
}
|
||||
if (!Schema::hasColumn('torrents', 'tags')) {
|
||||
$table->integer('tags')->default(0);
|
||||
}
|
||||
// if (!Schema::hasColumn('torrents', 'tags')) {
|
||||
// $table->integer('tags')->default(0);
|
||||
// }
|
||||
if (!Schema::hasColumn('torrents', 'technical_info')) {
|
||||
$table->text('technical_info')->nullable();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user