mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-09-01 18:58:56 +00:00
Merge pull request #219 from NNTmux/analysis-qM9eB4
Apply fixes from StyleCI [ci skip] [skip ci]
This commit is contained in:
@@ -1,11 +1,10 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateAllgroupsTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
@@ -22,7 +21,6 @@ class CreateAllgroupsTable extends Migration
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateAnidbEpisodesTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
@@ -19,11 +18,10 @@ class CreateAnidbEpisodesTable extends Migration
|
||||
$table->smallInteger('episode_no')->unsigned()->comment('Numeric version of episode (leave 0 for combined episodes).');
|
||||
$table->string('episode_title')->comment('Title of the episode (en, x-jat)');
|
||||
$table->date('airdate');
|
||||
$table->primary(['anidbid','episodeid']);
|
||||
$table->primary(['anidbid', 'episodeid']);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateAnidbInfoTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
@@ -27,11 +26,10 @@ class CreateAnidbInfoTable extends Migration
|
||||
$table->string('picture')->nullable()->default('NULL');
|
||||
$table->string('categories', 1024)->nullable()->default('NULL');
|
||||
$table->string('characters', 1024)->nullable()->default('NULL');
|
||||
$table->index(['startdate','enddate','updated'], 'ix_anidb_info_datetime');
|
||||
$table->index(['startdate', 'enddate', 'updated'], 'ix_anidb_info_datetime');
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateAnidbTitlesTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
@@ -18,11 +17,10 @@ class CreateAnidbTitlesTable extends Migration
|
||||
$table->string('type', 25)->comment('type of title.');
|
||||
$table->string('lang', 25);
|
||||
$table->string('title');
|
||||
$table->primary(['anidbid','type','lang','title']);
|
||||
$table->primary(['anidbid', 'type', 'lang', 'title']);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateAudioDataTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
@@ -26,11 +25,10 @@ class CreateAudioDataTable extends Migration
|
||||
$table->string('audiolibrary', 50)->nullable()->default('NULL');
|
||||
$table->string('audiolanguage', 50)->nullable()->default('NULL');
|
||||
$table->string('audiotitle', 50)->nullable()->default('NULL');
|
||||
$table->unique(['releases_id','audioid'], 'ix_releaseaudio_releaseid_audioid');
|
||||
$table->unique(['releases_id', 'audioid'], 'ix_releaseaudio_releaseid_audioid');
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateBinariesTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
@@ -26,7 +25,6 @@ class CreateBinariesTable extends Migration
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateBinaryblacklistTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
@@ -25,7 +24,6 @@ class CreateBinaryblacklistTable extends Migration
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateBookinfoTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
@@ -29,11 +28,10 @@ class CreateBookinfoTable extends Migration
|
||||
$table->string('genre');
|
||||
$table->boolean('cover')->default(0);
|
||||
$table->timestamps();
|
||||
$table->index(['author','title'], 'ix_bookinfo_author_title_ft');
|
||||
$table->index(['author', 'title'], 'ix_bookinfo_author_title_ft');
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateCategoriesTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
@@ -25,7 +24,6 @@ class CreateCategoriesTable extends Migration
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateCategoryRegexesTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
@@ -24,7 +23,6 @@ class CreateCategoryRegexesTable extends Migration
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateCollectionRegexesTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
@@ -23,7 +22,6 @@ class CreateCollectionRegexesTable extends Migration
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateCollectionsTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
@@ -32,7 +31,6 @@ class CreateCollectionsTable extends Migration
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateConsoleinfoTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
@@ -27,11 +26,10 @@ class CreateConsoleinfoTable extends Migration
|
||||
$table->string('review', 3000)->nullable()->default('NULL');
|
||||
$table->boolean('cover')->default(0);
|
||||
$table->timestamps();
|
||||
$table->index(['title','platform'], 'ix_consoleinfo_title_platform_ft');
|
||||
$table->index(['title', 'platform'], 'ix_consoleinfo_title_platform_ft');
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateContentTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
@@ -25,11 +24,10 @@ class CreateContentTable extends Migration
|
||||
$table->integer('status');
|
||||
$table->integer('ordinal')->nullable()->default('NULL');
|
||||
$table->integer('role')->default(0);
|
||||
$table->index(['showinmenu','status','contenttype','role'], 'ix_showinmenu_status_contenttype_role');
|
||||
$table->index(['showinmenu', 'status', 'contenttype', 'role'], 'ix_showinmenu_status_contenttype_role');
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateCountriesTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
@@ -20,7 +19,6 @@ class CreateCountriesTable extends Migration
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateDnzbFailuresTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
@@ -17,11 +16,10 @@ class CreateDnzbFailuresTable extends Migration
|
||||
$table->integer('release_id')->unsigned();
|
||||
$table->integer('userid')->unsigned();
|
||||
$table->integer('failed')->unsigned()->default(0);
|
||||
$table->primary(['release_id','userid']);
|
||||
$table->primary(['release_id', 'userid']);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateForumpostTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
@@ -27,7 +26,6 @@ class CreateForumpostTable extends Migration
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateGamesinfoTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
@@ -31,7 +30,6 @@ class CreateGamesinfoTable extends Migration
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateGenresTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
@@ -21,7 +20,6 @@ class CreateGenresTable extends Migration
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateGroupsTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
@@ -30,7 +29,6 @@ class CreateGroupsTable extends Migration
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateInvitationsTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
@@ -21,7 +20,6 @@ class CreateInvitationsTable extends Migration
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateLoggingTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
@@ -21,7 +20,6 @@ class CreateLoggingTable extends Migration
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateMenuTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
@@ -22,11 +21,10 @@ class CreateMenuTable extends Migration
|
||||
$table->integer('role')->unsigned();
|
||||
$table->integer('ordinal')->unsigned();
|
||||
$table->string('menueval', 2000)->default('\'\'');
|
||||
$table->index(['role','ordinal'], 'ix_role_ordinal');
|
||||
$table->index(['role', 'ordinal'], 'ix_role_ordinal');
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateMissedPartsTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
@@ -18,13 +17,12 @@ class CreateMissedPartsTable extends Migration
|
||||
$table->bigInteger('numberid')->unsigned();
|
||||
$table->integer('groups_id')->unsigned()->default(0)->comment('FK to groups.id');
|
||||
$table->boolean('attempts')->default(0)->index('ix_missed_parts_attempts');
|
||||
$table->unique(['numberid','groups_id'], 'ix_missed_parts_numberid_groupsid');
|
||||
$table->index(['groups_id','attempts'], 'ix_missed_parts_groupid_attempts');
|
||||
$table->index(['numberid','groups_id','attempts'], 'ix_missed_parts_numberid_groupsid_attempts');
|
||||
$table->unique(['numberid', 'groups_id'], 'ix_missed_parts_numberid_groupsid');
|
||||
$table->index(['groups_id', 'attempts'], 'ix_missed_parts_groupid_attempts');
|
||||
$table->index(['numberid', 'groups_id', 'attempts'], 'ix_missed_parts_numberid_groupsid_attempts');
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateMovieinfoTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
@@ -35,7 +34,6 @@ class CreateMovieinfoTable extends Migration
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateMultigroupBinariesTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
@@ -26,7 +25,6 @@ class CreateMultigroupBinariesTable extends Migration
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateMultigroupCollectionsTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
@@ -32,7 +31,6 @@ class CreateMultigroupCollectionsTable extends Migration
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateMultigroupMissedPartsTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
@@ -18,13 +17,12 @@ class CreateMultigroupMissedPartsTable extends Migration
|
||||
$table->bigInteger('numberid')->unsigned();
|
||||
$table->integer('groups_id')->unsigned()->default(0)->comment('FK to groups.id');
|
||||
$table->boolean('attempts')->default(0)->index('ix_missed_parts_attempts');
|
||||
$table->unique(['numberid','groups_id'], 'ix_missed_parts_numberid_groupsid');
|
||||
$table->index(['groups_id','attempts'], 'ix_missed_parts_groupid_attempts');
|
||||
$table->index(['numberid','groups_id','attempts'], 'ix_missed_parts_numberid_groupsid_attempts');
|
||||
$table->unique(['numberid', 'groups_id'], 'ix_missed_parts_numberid_groupsid');
|
||||
$table->index(['groups_id', 'attempts'], 'ix_missed_parts_groupid_attempts');
|
||||
$table->index(['numberid', 'groups_id', 'attempts'], 'ix_missed_parts_numberid_groupsid_attempts');
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateMultigroupPartsTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
@@ -19,11 +18,10 @@ class CreateMultigroupPartsTable extends Migration
|
||||
$table->bigInteger('number')->unsigned()->default(0);
|
||||
$table->integer('partnumber')->unsigned()->default(0);
|
||||
$table->integer('size')->unsigned()->default(0);
|
||||
$table->primary(['binaries_id','number']);
|
||||
$table->primary(['binaries_id', 'number']);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateMultigroupPostersTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
@@ -19,7 +18,6 @@ class CreateMultigroupPostersTable extends Migration
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateMusicinfoTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
@@ -28,11 +27,10 @@ class CreateMusicinfoTable extends Migration
|
||||
$table->string('tracks', 3000)->nullable()->default('NULL');
|
||||
$table->boolean('cover')->default(0);
|
||||
$table->timestamps();
|
||||
$table->index(['artist','title'], 'ix_musicinfo_artist_title_ft');
|
||||
$table->index(['artist', 'title'], 'ix_musicinfo_artist_title_ft');
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateParHashesTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
@@ -16,11 +15,10 @@ class CreateParHashesTable extends Migration
|
||||
Schema::create('par_hashes', function (Blueprint $table) {
|
||||
$table->integer('releases_id')->comment('FK to releases.id');
|
||||
$table->string('hash', 32)->comment('hash_16k block of par2');
|
||||
$table->primary(['releases_id','hash']);
|
||||
$table->primary(['releases_id', 'hash']);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreatePartsTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
@@ -19,11 +18,10 @@ class CreatePartsTable extends Migration
|
||||
$table->bigInteger('number')->unsigned()->default(0);
|
||||
$table->integer('partnumber')->unsigned()->default(0);
|
||||
$table->integer('size')->unsigned()->default(0);
|
||||
$table->primary(['binaries_id','number']);
|
||||
$table->primary(['binaries_id', 'number']);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreatePredbHashesTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
@@ -19,7 +18,6 @@ class CreatePredbHashesTable extends Migration
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreatePredbImportsTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
@@ -31,7 +30,6 @@ class CreatePredbImportsTable extends Migration
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreatePredbTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
@@ -28,11 +27,10 @@ class CreatePredbTable extends Migration
|
||||
$table->string('files', 50)->nullable()->default('NULL')->comment('How many files does this pre have ?');
|
||||
$table->string('filename')->default('\'\'')->index('ft_predb_filename');
|
||||
$table->boolean('searched')->default(0)->index('ix_predb_searched');
|
||||
$table->index(['requestid','groups_id'], 'ix_predb_requestid');
|
||||
$table->index(['requestid', 'groups_id'], 'ix_predb_requestid');
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateReleaseCommentsTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
@@ -31,11 +30,10 @@ class CreateReleaseCommentsTable extends Migration
|
||||
$table->string('siteid', 40)->default('\'\'');
|
||||
$table->bigInteger('sourceid')->unsigned()->nullable()->default('NULL');
|
||||
$table->binary('nzb_guid', 16)->default('\'0$UP$$UP$$UP$$UP$$UP$$UP$$UP$$UP$$UP$$UP$$UP$$UP$$UP$$UP$$UP$\'');
|
||||
$table->unique(['text_hash','releases_id'], 'ix_release_comments_hash_releases_id');
|
||||
$table->unique(['text_hash', 'releases_id'], 'ix_release_comments_hash_releases_id');
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateReleaseFilesTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
@@ -20,11 +19,10 @@ class CreateReleaseFilesTable extends Migration
|
||||
$table->boolean('ishashed')->default(0)->index('ix_releasefiles_ishashed');
|
||||
$table->timestamps();
|
||||
$table->boolean('passworded')->default(0);
|
||||
$table->primary(['releases_id','name']);
|
||||
$table->primary(['releases_id', 'name']);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateReleaseNamingRegexesTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
@@ -23,7 +22,6 @@ class CreateReleaseNamingRegexesTable extends Migration
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateReleaseNfosTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
@@ -19,7 +18,6 @@ class CreateReleaseNfosTable extends Migration
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateReleaseRegexesTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
@@ -17,11 +16,10 @@ class CreateReleaseRegexesTable extends Migration
|
||||
$table->integer('releases_id')->unsigned()->default(0);
|
||||
$table->integer('collection_regex_id')->default(0);
|
||||
$table->integer('naming_regex_id')->default(0);
|
||||
$table->primary(['releases_id','collection_regex_id','naming_regex_id']);
|
||||
$table->primary(['releases_id', 'collection_regex_id', 'naming_regex_id']);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateReleaseSearchDataTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
@@ -23,7 +22,6 @@ class CreateReleaseSearchDataTable extends Migration
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateReleaseSubtitlesTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
@@ -18,11 +17,10 @@ class CreateReleaseSubtitlesTable extends Migration
|
||||
$table->integer('releases_id')->unsigned()->comment('FK to releases.id');
|
||||
$table->integer('subsid')->unsigned();
|
||||
$table->string('subslanguage', 50);
|
||||
$table->unique(['releases_id','subsid'], 'ix_releasesubs_releases_id_subsid');
|
||||
$table->unique(['releases_id', 'subsid'], 'ix_releasesubs_releases_id_subsid');
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateReleaseUniqueTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
@@ -16,11 +15,10 @@ class CreateReleaseUniqueTable extends Migration
|
||||
Schema::create('release_unique', function (Blueprint $table) {
|
||||
$table->integer('releases_id')->unsigned()->comment('FK to releases.id.');
|
||||
$table->binary('uniqueid', 16)->default('\'0$UP$$UP$$UP$$UP$$UP$$UP$$UP$$UP$$UP$$UP$$UP$$UP$$UP$$UP$$UP$\'')->comment('Unique_ID from mediainfo.');
|
||||
$table->primary(['releases_id','uniqueid']);
|
||||
$table->primary(['releases_id', 'uniqueid']);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateReleaseextrafullTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
@@ -19,7 +18,6 @@ class CreateReleaseextrafullTable extends Migration
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateReleasesGroupsTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
@@ -16,11 +15,10 @@ class CreateReleasesGroupsTable extends Migration
|
||||
Schema::create('releases_groups', function (Blueprint $table) {
|
||||
$table->integer('releases_id')->unsigned()->default(0)->comment('FK to releases.id');
|
||||
$table->integer('groups_id')->unsigned()->default(0)->comment('FK to groups.id');
|
||||
$table->primary(['releases_id','groups_id']);
|
||||
$table->primary(['releases_id', 'groups_id']);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateReleasesTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
@@ -66,20 +65,19 @@ class CreateReleasesTable extends Migration
|
||||
processed');
|
||||
$table->boolean('proc_hash16k')->default(0)->comment('Has the release been
|
||||
hash16k processed');
|
||||
$table->primary(['id','categories_id']);
|
||||
$table->index(['groups_id','passwordstatus'], 'ix_releases_groupsid');
|
||||
$table->index(['postdate','searchname'], 'ix_releases_postdate_searchname');
|
||||
$table->index(['leftguid','predb_id'], 'ix_releases_leftguid');
|
||||
$table->index(['musicinfo_id','passwordstatus'], 'ix_releases_musicinfo_id');
|
||||
$table->index(['predb_id','searchname'], 'ix_releases_predb_id_searchname');
|
||||
$table->index(['haspreview','passwordstatus'], 'ix_releases_haspreview_passwordstatus');
|
||||
$table->index(['nfostatus','size'], 'ix_releases_nfostatus');
|
||||
$table->index(['dehashstatus','ishashed'], 'ix_releases_dehashstatus');
|
||||
$table->index(['adddate','reqidstatus','isrequestid'], 'ix_releases_reqidstatus');
|
||||
$table->primary(['id', 'categories_id']);
|
||||
$table->index(['groups_id', 'passwordstatus'], 'ix_releases_groupsid');
|
||||
$table->index(['postdate', 'searchname'], 'ix_releases_postdate_searchname');
|
||||
$table->index(['leftguid', 'predb_id'], 'ix_releases_leftguid');
|
||||
$table->index(['musicinfo_id', 'passwordstatus'], 'ix_releases_musicinfo_id');
|
||||
$table->index(['predb_id', 'searchname'], 'ix_releases_predb_id_searchname');
|
||||
$table->index(['haspreview', 'passwordstatus'], 'ix_releases_haspreview_passwordstatus');
|
||||
$table->index(['nfostatus', 'size'], 'ix_releases_nfostatus');
|
||||
$table->index(['dehashstatus', 'ishashed'], 'ix_releases_dehashstatus');
|
||||
$table->index(['adddate', 'reqidstatus', 'isrequestid'], 'ix_releases_reqidstatus');
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateRoleExcludedCategoriesTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
@@ -18,11 +17,10 @@ class CreateRoleExcludedCategoriesTable extends Migration
|
||||
$table->integer('role');
|
||||
$table->integer('categories_id')->nullable()->default('NULL');
|
||||
$table->timestamps();
|
||||
$table->unique(['role','categories_id'], 'ix_roleexcat_rolecat');
|
||||
$table->unique(['role', 'categories_id'], 'ix_roleexcat_rolecat');
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateSettingsTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
@@ -20,11 +19,10 @@ class CreateSettingsTable extends Migration
|
||||
$table->string('value', 1000)->default('\'\'');
|
||||
$table->text('hint', 65535);
|
||||
$table->string('setting', 64)->default('\'\'')->unique('ui_settings_setting');
|
||||
$table->primary(['section','subsection','name']);
|
||||
$table->primary(['section', 'subsection', 'name']);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateSharingSitesTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
@@ -24,7 +23,6 @@ class CreateSharingSitesTable extends Migration
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateSharingTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
@@ -30,7 +29,6 @@ class CreateSharingTable extends Migration
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateShortGroupsTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
@@ -22,7 +21,6 @@ class CreateShortGroupsTable extends Migration
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateSpotnabsourcesTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
@@ -25,11 +24,10 @@ class CreateSpotnabsourcesTable extends Migration
|
||||
$table->dateTime('lastbroadcast')->nullable()->default('NULL');
|
||||
$table->bigInteger('lastarticle')->unsigned()->default(0);
|
||||
$table->dateTime('dateadded')->nullable()->default('NULL');
|
||||
$table->unique(['username','useremail','usenetgroup'], 'spotnabsources_ix1');
|
||||
$table->unique(['username', 'useremail', 'usenetgroup'], 'spotnabsources_ix1');
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateSteamAppsTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
@@ -16,11 +15,10 @@ class CreateSteamAppsTable extends Migration
|
||||
Schema::create('steam_apps', function (Blueprint $table) {
|
||||
$table->string('name')->default('\'\'')->index('ix_name_ft')->comment('Steam application name');
|
||||
$table->integer('appid')->unsigned()->comment('Steam application id');
|
||||
$table->primary(['appid','name']);
|
||||
$table->primary(['appid', 'name']);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateTmuxTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
@@ -21,7 +20,6 @@ class CreateTmuxTable extends Migration
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateTvEpisodesTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
@@ -22,11 +21,10 @@ class CreateTvEpisodesTable extends Migration
|
||||
$table->string('title', 180)->comment('Title of the episode.');
|
||||
$table->date('firstaired')->comment('Date of original airing/release.');
|
||||
$table->text('summary', 65535)->comment('Description/summary of the episode.');
|
||||
$table->unique(['videos_id','series','episode','firstaired'], 'videos_id');
|
||||
$table->unique(['videos_id', 'series', 'episode', 'firstaired'], 'videos_id');
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateTvInfoTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
@@ -22,7 +21,6 @@ class CreateTvInfoTable extends Migration
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateUpcomingReleasesTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
@@ -19,11 +18,10 @@ class CreateUpcomingReleasesTable extends Migration
|
||||
$table->integer('typeid');
|
||||
$table->text('info', 65535)->nullable()->default('NULL');
|
||||
$table->dateTime('updateddate')->default('current_timestamp()');
|
||||
$table->unique(['source','typeid'], 'ix_upcoming_source');
|
||||
$table->unique(['source', 'typeid'], 'ix_upcoming_source');
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateUserDownloadsTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
@@ -22,7 +21,6 @@ class CreateUserDownloadsTable extends Migration
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateUserExcludedCategoriesTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
@@ -18,11 +17,10 @@ class CreateUserExcludedCategoriesTable extends Migration
|
||||
$table->integer('users_id')->unsigned();
|
||||
$table->integer('categories_id');
|
||||
$table->timestamps();
|
||||
$table->unique(['users_id','categories_id'], 'ix_userexcat_usercat');
|
||||
$table->unique(['users_id', 'categories_id'], 'ix_userexcat_usercat');
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateUserMoviesTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
@@ -19,11 +18,10 @@ class CreateUserMoviesTable extends Migration
|
||||
$table->integer('imdbid')->unsigned()->nullable()->default('NULL');
|
||||
$table->string('categories', 64)->nullable()->default('NULL')->comment('List of categories for user movies');
|
||||
$table->timestamps();
|
||||
$table->index(['users_id','imdbid'], 'ix_usermovies_userid');
|
||||
$table->index(['users_id', 'imdbid'], 'ix_usermovies_userid');
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateUserRequestsTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
@@ -22,7 +21,6 @@ class CreateUserRequestsTable extends Migration
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateUserRolesTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
@@ -25,7 +24,6 @@ class CreateUserRolesTable extends Migration
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateUserSeriesTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
@@ -19,11 +18,10 @@ class CreateUserSeriesTable extends Migration
|
||||
$table->integer('videos_id')->comment('FK to videos.id');
|
||||
$table->string('categories', 64)->nullable()->default('NULL')->comment('List of categories for user tv shows');
|
||||
$table->timestamps();
|
||||
$table->index(['users_id','videos_id'], 'ix_userseries_videos_id');
|
||||
$table->index(['users_id', 'videos_id'], 'ix_userseries_videos_id');
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateUsersReleasesTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
@@ -19,11 +18,10 @@ class CreateUsersReleasesTable extends Migration
|
||||
$table->integer('releases_id')->comment('FK to releases.id');
|
||||
$table->timestamps();
|
||||
$table->dateTime('updateddate');
|
||||
$table->unique(['users_id','releases_id'], 'ix_usercart_userrelease');
|
||||
$table->unique(['users_id', 'releases_id'], 'ix_usercart_userrelease');
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateUsersTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
@@ -56,7 +55,6 @@ class CreateUsersTable extends Migration
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateVideoDataTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
@@ -28,7 +27,6 @@ class CreateVideoDataTable extends Migration
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateVideosAliasesTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
@@ -16,11 +15,10 @@ class CreateVideosAliasesTable extends Migration
|
||||
Schema::create('videos_aliases', function (Blueprint $table) {
|
||||
$table->integer('videos_id')->unsigned()->comment('FK to videos.id of the parent title.');
|
||||
$table->string('title', 180)->comment('AKA of the video.');
|
||||
$table->primary(['videos_id','title']);
|
||||
$table->primary(['videos_id', 'title']);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateVideosTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
@@ -27,12 +26,11 @@ class CreateVideosTable extends Migration
|
||||
$table->integer('tvmaze')->unsigned()->default(0)->index('ix_videos_tvmaze')->comment('ID number for TVMaze site.');
|
||||
$table->integer('tvrage')->unsigned()->default(0)->index('ix_videos_tvrage')->comment('ID number for TVRage site.');
|
||||
$table->boolean('source')->default(0)->comment('Which site did we use for info?');
|
||||
$table->unique(['title','type','started','countries_id'], 'ix_videos_title');
|
||||
$table->index(['type','source'], 'ix_videos_type_source');
|
||||
$table->unique(['title', 'type', 'started', 'countries_id'], 'ix_videos_title');
|
||||
$table->index(['type', 'source'], 'ix_videos_type_source');
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateXxxinfoTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
@@ -32,7 +31,6 @@ class CreateXxxinfoTable extends Migration
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user