mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 03:57:22 +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('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');
|
||||||
|
|||||||
+3
-3
@@ -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();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user