mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-28 17:01:16 +00:00
Fix code style of many files
This commit is contained in:
+18
-52
@@ -1,55 +1,21 @@
|
||||
<?php
|
||||
/**
|
||||
* Config for PHP-CS-Fixer ver2
|
||||
*/
|
||||
$rules = [
|
||||
'psr0' => false,
|
||||
'@PSR2' => true,
|
||||
'blank_line_after_namespace' => true,
|
||||
'braces' => true,
|
||||
'class_definition' => true,
|
||||
'elseif' => true,
|
||||
'function_declaration' => true,
|
||||
'indentation_type' => true,
|
||||
'line_ending' => true,
|
||||
'lowercase_constants' => true,
|
||||
'lowercase_keywords' => true,
|
||||
'method_argument_space' => [
|
||||
'ensure_fully_multiline' => true, ],
|
||||
'no_break_comment' => true,
|
||||
'no_closing_tag' => true,
|
||||
'no_spaces_after_function_name' => true,
|
||||
'no_spaces_inside_parenthesis' => true,
|
||||
'no_trailing_whitespace' => true,
|
||||
'no_trailing_whitespace_in_comment' => true,
|
||||
'single_blank_line_at_eof' => true,
|
||||
'single_class_element_per_statement' => [
|
||||
'elements' => ['property'],
|
||||
],
|
||||
'single_import_per_statement' => true,
|
||||
'single_line_after_imports' => true,
|
||||
'switch_case_semicolon_to_colon' => true,
|
||||
'switch_case_space' => true,
|
||||
'visibility_required' => true,
|
||||
'encoding' => true,
|
||||
'full_opening_tag' => true,
|
||||
];
|
||||
$excludes = [
|
||||
// add exclude project directory
|
||||
'vendor',
|
||||
'resources',
|
||||
'tests',
|
||||
'storage',
|
||||
'docs',
|
||||
'public',
|
||||
'bootstrap',
|
||||
];
|
||||
return PhpCsFixer\Config::create()
|
||||
->setRules($rules)
|
||||
|
||||
require __DIR__.'/vendor/autoload.php';
|
||||
require __DIR__.'/bootstrap/app.php';
|
||||
|
||||
return (new MattAllan\LaravelCodeStyle\Config())
|
||||
->setFinder(
|
||||
PhpCsFixer\Finder::create()
|
||||
->exclude($excludes)
|
||||
->in(__DIR__)
|
||||
->name('*.php')
|
||||
->notName('*.blade.php')
|
||||
);
|
||||
->in(app_path())
|
||||
->in(config_path())
|
||||
->in(database_path())
|
||||
->notPath(database_path('migrations'))
|
||||
->in(resource_path('lang'))
|
||||
->in(base_path('routes'))
|
||||
->in(base_path('tests'))
|
||||
->in(base_path('Blacklight'))
|
||||
->in(base_path('misc'))
|
||||
)
|
||||
->setRules([
|
||||
'@Laravel' => true,
|
||||
]);
|
||||
|
||||
+4
-4
@@ -16,10 +16,10 @@ use App\Extensions\util\PhpYenc;
|
||||
*/
|
||||
|
||||
/*
|
||||
* 'Service discontinued' (RFC977)
|
||||
*
|
||||
* @access public
|
||||
*/
|
||||
* 'Service discontinued' (RFC977)
|
||||
*
|
||||
* @access public
|
||||
*/
|
||||
define('NET_NNTP_PROTOCOL_RESPONSECODE_DISCONNECTING_FORCED', 400);
|
||||
|
||||
/*
|
||||
|
||||
@@ -106,11 +106,11 @@ class PreDb
|
||||
$options += $defaults;
|
||||
|
||||
if (empty($options['path'])) {
|
||||
return null;
|
||||
return;
|
||||
}
|
||||
|
||||
if (! is_numeric($options['limit'])) {
|
||||
return null;
|
||||
return;
|
||||
}
|
||||
|
||||
$limit = $options['limit'] > 0 ? "LIMIT {$options['limit']}" : '';
|
||||
@@ -153,7 +153,7 @@ SQL_EXPORT;
|
||||
$options += $defaults;
|
||||
|
||||
if (empty($options['path'])) {
|
||||
return null;
|
||||
return;
|
||||
}
|
||||
|
||||
if (! isset($this->ps['LoadData'])) {
|
||||
|
||||
@@ -387,7 +387,7 @@ class Forking
|
||||
WHERE g.first_record IS NOT NULL
|
||||
AND g.first_record_postdate IS NOT NULL
|
||||
AND g.backfill = 1
|
||||
AND %s < g.first_record_postdate
|
||||
AND (NOW() - INTERVAL %d DAY ) < g.first_record_postdate
|
||||
GROUP BY a.name, a.last_record, g.name, g.first_record
|
||||
%s LIMIT 1',
|
||||
$backfilldays,
|
||||
|
||||
@@ -210,7 +210,7 @@ class TraktAPI
|
||||
public function searchId($id, $site = 'trakt', $type = 0)
|
||||
{
|
||||
if (! \in_array($site, self::$types, false) || ! ctype_digit($id)) {
|
||||
return null;
|
||||
return;
|
||||
}
|
||||
if ($site === 'imdb') {
|
||||
$id = 'tt'.$id;
|
||||
@@ -268,7 +268,7 @@ class TraktAPI
|
||||
public function showSummary($show = '', $type = 'full')
|
||||
{
|
||||
if (empty($show)) {
|
||||
return null;
|
||||
return;
|
||||
}
|
||||
$showUrl = self::API_URL.'shows/'.Str::slug($show);
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
2019-05-07 DariusIII
|
||||
* Chg: Fix code style of many files
|
||||
* Chg: Update code fixing in dev, used libraries and laravel/framework to latest versions
|
||||
2019-05-05 DariusIII
|
||||
* Chg: Update pnotify to version 4.0.0 and tinyMCE to latest version
|
||||
|
||||
@@ -118,10 +118,10 @@ return [
|
||||
'model_key' => 'name',
|
||||
|
||||
/*
|
||||
* You may optionally indicate a specific cache driver to use for permission and
|
||||
* role caching using any of the `store` drivers listed in the cache.php config
|
||||
* file. Using 'default' here means to use the `default` set in cache.php.
|
||||
*/
|
||||
* You may optionally indicate a specific cache driver to use for permission and
|
||||
* role caching using any of the `store` drivers listed in the cache.php config
|
||||
* file. Using 'default' here means to use the `default` set in cache.php.
|
||||
*/
|
||||
'store' => 'default',
|
||||
],
|
||||
];
|
||||
|
||||
@@ -660,5 +660,5 @@ return [
|
||||
'disablepreview' => 0,
|
||||
'minsizetoformrelease' => 0,
|
||||
'maxsizetoformrelease' => 0,
|
||||
]
|
||||
],
|
||||
];
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
0 =>
|
||||
[
|
||||
0 => [
|
||||
'id' => 1,
|
||||
'title' => 'Other',
|
||||
'status' => 1,
|
||||
@@ -10,8 +9,7 @@ return [
|
||||
'created_at' => now(),
|
||||
'updated_at' => now(),
|
||||
],
|
||||
1 =>
|
||||
[
|
||||
1 => [
|
||||
'id' => 1000,
|
||||
'title' => 'Console',
|
||||
'status' => 1,
|
||||
@@ -19,8 +17,7 @@ return [
|
||||
'created_at' => now(),
|
||||
'updated_at' => now(),
|
||||
],
|
||||
2 =>
|
||||
[
|
||||
2 => [
|
||||
'id' => 2000,
|
||||
'title' => 'Movies',
|
||||
'status' => 1,
|
||||
@@ -28,8 +25,7 @@ return [
|
||||
'created_at' => now(),
|
||||
'updated_at' => now(),
|
||||
],
|
||||
3 =>
|
||||
[
|
||||
3 => [
|
||||
'id' => 3000,
|
||||
'title' => 'Audio',
|
||||
'status' => 1,
|
||||
@@ -37,8 +33,7 @@ return [
|
||||
'created_at' => now(),
|
||||
'updated_at' => now(),
|
||||
],
|
||||
4 =>
|
||||
[
|
||||
4 => [
|
||||
'id' => 4000,
|
||||
'title' => 'PC',
|
||||
'status' => 1,
|
||||
@@ -46,8 +41,7 @@ return [
|
||||
'created_at' => now(),
|
||||
'updated_at' => now(),
|
||||
],
|
||||
5 =>
|
||||
[
|
||||
5 => [
|
||||
'id' => 5000,
|
||||
'title' => 'TV',
|
||||
'status' => 1,
|
||||
@@ -55,8 +49,7 @@ return [
|
||||
'created_at' => now(),
|
||||
'updated_at' => now(),
|
||||
],
|
||||
6 =>
|
||||
[
|
||||
6 => [
|
||||
'id' => 6000,
|
||||
'title' => 'XXX',
|
||||
'status' => 1,
|
||||
@@ -64,8 +57,7 @@ return [
|
||||
'created_at' => now(),
|
||||
'updated_at' => now(),
|
||||
],
|
||||
7 =>
|
||||
[
|
||||
7 => [
|
||||
'id' => 7000,
|
||||
'title' => 'Books',
|
||||
'status' => 1,
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateTaggedTable extends Migration
|
||||
{
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateTagsTable extends Migration
|
||||
{
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateFirewallTable extends Migration
|
||||
{
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateTagGroupsTable extends Migration
|
||||
{
|
||||
|
||||
@@ -12,7 +12,6 @@ class UpdateTagsTable extends Migration
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
public function down()
|
||||
{
|
||||
Schema::table('tagging_tags', function ($table) {
|
||||
|
||||
@@ -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.
|
||||
*
|
||||
@@ -61,7 +60,6 @@ class CreateUsersTable extends Migration
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreatePermissionTables extends Migration
|
||||
{
|
||||
|
||||
@@ -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.
|
||||
*
|
||||
@@ -28,7 +27,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.
|
||||
*
|
||||
@@ -33,7 +32,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.
|
||||
*
|
||||
@@ -32,7 +31,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 CreateBinaryblacklistTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
@@ -34,7 +33,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 CreateContentTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
@@ -28,7 +27,7 @@ class CreateContentTable extends Migration
|
||||
$table->integer('status');
|
||||
$table->integer('ordinal')->nullable();
|
||||
$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');
|
||||
});
|
||||
|
||||
if (env('DB_CONNECTION') !== 'pgsql') {
|
||||
@@ -38,7 +37,6 @@ class CreateContentTable 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 CreateForumpostTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
@@ -31,7 +30,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 CreateGenresTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
@@ -30,7 +29,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.
|
||||
*
|
||||
@@ -39,7 +38,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 CreateReleaseNamingRegexesTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
@@ -32,7 +31,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 CreateSettingsTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
@@ -23,11 +22,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 CreateCollectionsTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
@@ -35,7 +34,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 CreateReleasesTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
@@ -69,14 +68,14 @@ processed');
|
||||
$table->boolean('proc_hash16k')->default(0)->comment('Has the release been hash16k
|
||||
processed');
|
||||
$table->boolean('proc_crc32')->default(0)->comment('Has the release been crc32 processed');
|
||||
$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(['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');
|
||||
});
|
||||
|
||||
DB::statement('ALTER TABLE releases DROP PRIMARY KEY , ADD PRIMARY KEY (id, categories_id)');
|
||||
@@ -84,7 +83,6 @@ processed');
|
||||
DB::statement('ALTER TABLE releases ADD INDEX ix_releases_nzb_guid (nzb_guid)');
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 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.
|
||||
*
|
||||
@@ -22,11 +21,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.
|
||||
*
|
||||
@@ -30,11 +29,10 @@ class CreateAnidbInfoTable extends Migration
|
||||
$table->string('picture')->nullable();
|
||||
$table->string('categories', 1024)->nullable();
|
||||
$table->string('characters', 1024)->nullable();
|
||||
$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.
|
||||
*
|
||||
@@ -21,11 +20,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.
|
||||
*
|
||||
@@ -29,12 +28,11 @@ class CreateAudioDataTable extends Migration
|
||||
$table->string('audiolibrary', 50)->nullable();
|
||||
$table->string('audiolanguage', 50)->nullable();
|
||||
$table->string('audiotitle', 50)->nullable();
|
||||
$table->unique(['releases_id','audioid'], 'ix_releaseaudio_releaseid_audioid');
|
||||
$table->unique(['releases_id', 'audioid'], 'ix_releaseaudio_releaseid_audioid');
|
||||
$table->foreign('releases_id', 'FK_ad_releases')->references('id')->on('releases')->onUpdate('CASCADE')->onDelete('CASCADE');
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 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.
|
||||
*
|
||||
@@ -32,7 +31,6 @@ class CreateBinariesTable extends Migration
|
||||
DB::statement('ALTER TABLE binaries ADD UNIQUE INDEX ix_binaries_binaryhash (binaryhash)');
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 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.
|
||||
*
|
||||
@@ -36,7 +35,6 @@ class CreateBookinfoTable extends Migration
|
||||
DB::statement('ALTER TABLE bookinfo ADD FULLTEXT ix_bookinfo_author_title_ft (author, 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 CreateConsoleinfoTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
@@ -34,7 +33,6 @@ class CreateConsoleinfoTable extends Migration
|
||||
DB::statement('ALTER TABLE consoleinfo ADD FULLTEXT ix_consoleinfo_title_platform_ft (title, platform)');
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 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.
|
||||
*
|
||||
@@ -20,13 +19,12 @@ class CreateDnzbFailuresTable extends Migration
|
||||
$table->integer('release_id')->unsigned();
|
||||
$table->integer('users_id')->unsigned()->index('FK_users_df');
|
||||
$table->integer('failed')->unsigned()->default(0);
|
||||
$table->primary(['release_id','users_id']);
|
||||
$table->primary(['release_id', 'users_id']);
|
||||
$table->foreign('users_id', 'FK_users_df')->references('id')->on('users')->onUpdate('CASCADE')->onDelete('CASCADE');
|
||||
$table->foreign('release_id', 'FK_df_releases')->references('id')->on('releases')->onUpdate('CASCADE')->onDelete('CASCADE');
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 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.
|
||||
*
|
||||
@@ -36,7 +35,6 @@ class CreateGamesinfoTable extends Migration
|
||||
DB::statement('ALTER TABLE gamesinfo ADD FULLTEXT ix_title_ft(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 CreateInvitationsTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
@@ -25,7 +24,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.
|
||||
*
|
||||
@@ -24,7 +23,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 CreateMissedPartsTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
@@ -21,13 +20,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.
|
||||
*
|
||||
@@ -39,7 +38,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 CreateMusicinfoTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
@@ -35,7 +34,6 @@ class CreateMusicinfoTable extends Migration
|
||||
DB::statement('ALTER TABLE musicinfo ADD FULLTEXT ix_musicinfo_artist_title_ft (artist, 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 CreateParHashesTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
@@ -19,12 +18,11 @@ class CreateParHashesTable extends Migration
|
||||
$table->collation = 'utf8_unicode_ci';
|
||||
$table->integer('releases_id')->unsigned()->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']);
|
||||
$table->foreign('releases_id', 'FK_ph_releases')->references('id')->on('releases')->onUpdate('CASCADE')->onDelete('CASCADE');
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 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.
|
||||
*
|
||||
@@ -22,12 +21,11 @@ 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']);
|
||||
$table->foreign('binaries_id', 'FK_binaries')->references('id')->on('binaries')->onUpdate('CASCADE')->onDelete('CASCADE');
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 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.
|
||||
*
|
||||
@@ -31,12 +30,11 @@ class CreatePredbTable extends Migration
|
||||
$table->string('files', 50)->nullable()->comment('How many files does this pre have ?');
|
||||
$table->string('filename')->default('');
|
||||
$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');
|
||||
});
|
||||
DB::statement('ALTER TABLE predb ADD FULLTEXT ft_predb_filename (filename)');
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 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.
|
||||
*
|
||||
@@ -24,7 +23,6 @@ class CreatePredbHashesTable extends Migration
|
||||
DB::statement('ALTER TABLE predb_hashes ADD PRIMARY KEY (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 CreatePredbImportsTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
@@ -34,7 +33,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 CreateReleaseCommentsTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
@@ -33,14 +32,13 @@ class CreateReleaseCommentsTable extends Migration
|
||||
$table->string('shareid', 40)->default('');
|
||||
$table->string('siteid', 40)->default('');
|
||||
$table->bigInteger('sourceid')->unsigned()->nullable();
|
||||
$table->unique(['text_hash','releases_id'], 'ix_release_comments_hash_releases_id');
|
||||
$table->unique(['text_hash', 'releases_id'], 'ix_release_comments_hash_releases_id');
|
||||
$table->foreign('releases_id', 'FK_rc_releases')->references('id')->on('releases')->onUpdate('CASCADE')->onDelete('CASCADE');
|
||||
});
|
||||
|
||||
DB::statement("ALTER TABLE release_comments ADD COLUMN nzb_guid BINARY(16) NOT NULL DEFAULT '0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0'");
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 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.
|
||||
*
|
||||
@@ -19,12 +18,11 @@ class CreateReleasesGroupsTable extends Migration
|
||||
$table->collation = 'utf8_unicode_ci';
|
||||
$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']);
|
||||
$table->foreign('releases_id', 'FK_rg_releases')->references('id')->on('releases')->onUpdate('CASCADE')->onDelete('CASCADE');
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 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.
|
||||
*
|
||||
@@ -20,11 +19,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'], 'ix_rel_coll_name_reg_id');
|
||||
$table->primary(['releases_id', 'collection_regex_id', 'naming_regex_id'], 'ix_rel_coll_name_reg_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 CreateReleaseUniqueTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
@@ -24,7 +23,6 @@ class CreateReleaseUniqueTable 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 CreateReleaseextrafullTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
@@ -23,7 +22,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 CreateReleaseFilesTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
@@ -24,12 +23,11 @@ class CreateReleaseFilesTable extends Migration
|
||||
$table->string('crc32')->default('');
|
||||
$table->timestamps();
|
||||
$table->boolean('passworded')->default(0);
|
||||
$table->primary(['releases_id','name']);
|
||||
$table->primary(['releases_id', 'name']);
|
||||
$table->foreign('releases_id', 'FK_rf_releases')->references('id')->on('releases')->onUpdate('CASCADE')->onDelete('CASCADE');
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 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.
|
||||
*
|
||||
@@ -23,7 +22,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 CreateReleaseSubtitlesTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
@@ -21,12 +20,11 @@ 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');
|
||||
$table->foreign('releases_id', 'FK_rs_releases')->references('id')->on('releases')->onUpdate('CASCADE')->onDelete('CASCADE');
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 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.
|
||||
*
|
||||
@@ -33,7 +32,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 CreateSharingSitesTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
@@ -27,7 +26,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 CreateShortGroupsTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
@@ -25,7 +24,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 CreateSteamAppsTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
@@ -19,13 +18,12 @@ class CreateSteamAppsTable extends Migration
|
||||
$table->collation = 'utf8_unicode_ci';
|
||||
$table->string('name')->default('')->comment('Steam application name');
|
||||
$table->integer('appid')->unsigned()->comment('Steam application id');
|
||||
$table->primary(['appid','name']);
|
||||
$table->primary(['appid', 'name']);
|
||||
});
|
||||
|
||||
DB::statement('ALTER TABLE steam_apps ADD FULLTEXT ix_name_ft (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 CreateTvEpisodesTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
@@ -25,11 +24,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.
|
||||
*
|
||||
@@ -25,7 +24,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 CreateUsersReleasesTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
@@ -21,13 +20,12 @@ class CreateUsersReleasesTable extends Migration
|
||||
$table->integer('users_id')->unsigned();
|
||||
$table->integer('releases_id')->unsigned()->comment('FK to releases.id');
|
||||
$table->timestamps();
|
||||
$table->unique(['users_id','releases_id'], 'ix_usercart_userrelease');
|
||||
$table->unique(['users_id', 'releases_id'], 'ix_usercart_userrelease');
|
||||
$table->foreign('users_id', 'FK_users_ur')->references('id')->on('users')->onUpdate('CASCADE')->onDelete('CASCADE');
|
||||
$table->foreign('releases_id', 'FK_ur_releases')->references('id')->on('releases')->onUpdate('CASCADE')->onDelete('CASCADE');
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 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.
|
||||
*
|
||||
@@ -26,7 +25,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 CreateUserMoviesTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
@@ -22,12 +21,11 @@ class CreateUserMoviesTable extends Migration
|
||||
$table->string('imdbid')->nullable();
|
||||
$table->string('categories', 64)->nullable()->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');
|
||||
$table->foreign('users_id', 'FK_users_um')->references('id')->on('users')->onUpdate('CASCADE')->onDelete('CASCADE');
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 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.
|
||||
*
|
||||
@@ -26,7 +25,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 CreateUserSeriesTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
@@ -22,12 +21,11 @@ class CreateUserSeriesTable extends Migration
|
||||
$table->integer('videos_id')->comment('FK to videos.id');
|
||||
$table->string('categories', 64)->nullable()->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');
|
||||
$table->foreign('users_id', 'FK_users_us')->references('id')->on('users')->onUpdate('CASCADE')->onDelete('CASCADE');
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 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.
|
||||
*
|
||||
@@ -32,7 +31,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 CreateVideosTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
@@ -30,12 +29,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 CreateVideosAliasesTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
@@ -19,11 +18,10 @@ class CreateVideosAliasesTable extends Migration
|
||||
$table->collation = 'utf8_unicode_ci';
|
||||
$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 CreateXxxinfoTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
@@ -35,7 +34,6 @@ class CreateXxxinfoTable extends Migration
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateCacheTable extends Migration
|
||||
{
|
||||
|
||||
@@ -4,9 +4,8 @@
|
||||
*
|
||||
* (c) Jean Ragouin <go@askjong.com> <www.askjong.com>
|
||||
*/
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class AddVerificationToUserTable extends Migration
|
||||
{
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class UpdateBinariesTable extends Migration
|
||||
{
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class RenameGroupsTable extends Migration
|
||||
|
||||
@@ -4,9 +4,8 @@ use Illuminate\Database\Seeder;
|
||||
|
||||
class BinaryblacklistTableSeeder extends Seeder
|
||||
{
|
||||
|
||||
/**
|
||||
* Auto generated seed file
|
||||
* Auto generated seed file.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
@@ -15,8 +14,7 @@ class BinaryblacklistTableSeeder extends Seeder
|
||||
\DB::table('binaryblacklist')->delete();
|
||||
|
||||
\DB::table('binaryblacklist')->insert([
|
||||
0 =>
|
||||
[
|
||||
0 => [
|
||||
'id' => 1,
|
||||
'groupname' => 'alt\\.binaries\\..*',
|
||||
'regex' => '(brazilian|chinese|croatian|danish|deutsch|dutch|estonian|flemish|finnish|french|german|greek|hebrew|icelandic|italian|latin|nordic|norwegian|polish|portuguese|japenese|japanese|russian|serbian|slovenian|spanish|spanisch|swedish|thai|turkish)[\\)]?( \\-)?[ \\-\\.]((19|20)\\d\\d|(480|720|1080)(i|p)|3d|5\\.1|dts|ac3|truehd|(bd|dvd|hd|sat|vhs|web)\\.?rip|(bd.)?(h|x).?2?64|divx|xvid|bluray|svcd|board|custom|"|(d|h|p|s)d?v?tv|m?dvd(-|sc)?r|int(ernal)?|nzb|par2|\\b(((dc|ld|md|ml|dl|hr|se)[.])|(anime\\.)|(fs|ws)|dsr|pal|ntsc|iso|complete|cracked|ebook|extended|dirfix|festival|proper|game|limited|read.?nfo|real|rerip|repack|remastered|retail|samplefix|scan|screener|theatrical|uncut|unrated|incl|winall)\\b|doku|doc|dub|sub|\\(uncut\\))',
|
||||
@@ -26,8 +24,7 @@ class BinaryblacklistTableSeeder extends Seeder
|
||||
'description' => 'Blacklists non-english releases.',
|
||||
'last_activity' => null,
|
||||
],
|
||||
1 =>
|
||||
[
|
||||
1 => [
|
||||
'id' => 2,
|
||||
'groupname' => 'alt\\.binaries\\..*',
|
||||
'regex' => '[ -.](bl|cz|de|es|fr|ger|heb|hu|hun|ita|ko|kor|nl|pl|se)[ -.]((19|20)\\d\\d|(480|720|1080)(i|p)|(bd|dvd.?|sat|vhs)?rip?|(bd|dl)mux|( -.)?(dub|sub)(ed|bed)?|complete|convert|(d|h|p|s)d?tv|dirfix|docu|dual|dvbs|dvdscr|eng|(h|x).?2?64|int(ernal)?|pal|proper|repack|xbox)',
|
||||
@@ -37,8 +34,7 @@ class BinaryblacklistTableSeeder extends Seeder
|
||||
'description' => 'Blacklists non-english abbreviated releases.',
|
||||
'last_activity' => null,
|
||||
],
|
||||
2 =>
|
||||
[
|
||||
2 => [
|
||||
'id' => 3,
|
||||
'groupname' => 'alt\\.binaries\\..*',
|
||||
'regex' => '[ -.]((19|20)\\d\\d|(bd|dvd.?|sat|vhs)?rip?|custom|divx|dts)[ -.](bl|cz|de|es|fr|ger|heb|hu|ita|ko|kor|nl|pl|se)[ -.]',
|
||||
@@ -48,8 +44,7 @@ class BinaryblacklistTableSeeder extends Seeder
|
||||
'description' => 'Blacklists non-english abbreviated (reversed) releases.',
|
||||
'last_activity' => null,
|
||||
],
|
||||
3 =>
|
||||
[
|
||||
3 => [
|
||||
'id' => 4,
|
||||
'groupname' => 'alt\\.binaries\\..*',
|
||||
'regex' => '[ -.](chinese.subbed|dksubs|fansubs?|finsub|hebdub|hebsub|korsub|norsub|nordicsubs|nl( -.)?sub(ed|bed|s)?|nlvlaams|pldub|plsub|slosinh|swesub|truefrench|vost(fr)?)[ -.]',
|
||||
@@ -59,8 +54,7 @@ class BinaryblacklistTableSeeder extends Seeder
|
||||
'description' => 'Blacklists non-english subtitled releases.',
|
||||
'last_activity' => null,
|
||||
],
|
||||
4 =>
|
||||
[
|
||||
4 => [
|
||||
'id' => 5,
|
||||
'groupname' => 'alt\\.binaries\\..*',
|
||||
'regex' => '[ -._](4u\\.nl|nov[ a]+rip|realco|videomann|vost)[ -._]',
|
||||
@@ -70,8 +64,7 @@ class BinaryblacklistTableSeeder extends Seeder
|
||||
'description' => 'Blacklists non-english (release group specific) releases.',
|
||||
'last_activity' => null,
|
||||
],
|
||||
5 =>
|
||||
[
|
||||
5 => [
|
||||
'id' => 6,
|
||||
'groupname' => 'alt\\.binaries\\..*',
|
||||
'regex' => '[ -.]((bd|dl)mux|doku|\\[foreign\\]|seizoen|staffel)[ -.]',
|
||||
@@ -81,8 +74,7 @@ class BinaryblacklistTableSeeder extends Seeder
|
||||
'description' => 'Blacklists non-english (lang specific) releases.',
|
||||
'last_activity' => null,
|
||||
],
|
||||
6 =>
|
||||
[
|
||||
6 => [
|
||||
'id' => 7,
|
||||
'groupname' => 'alt\\.binaries\\..*',
|
||||
'regex' => '[ -.](imageset|pictureset|xxx)[ -.]',
|
||||
@@ -92,8 +84,7 @@ class BinaryblacklistTableSeeder extends Seeder
|
||||
'description' => 'Blacklists porn releases.',
|
||||
'last_activity' => null,
|
||||
],
|
||||
7 =>
|
||||
[
|
||||
7 => [
|
||||
'id' => 8,
|
||||
'groupname' => 'alt\\.binaries\\..*',
|
||||
'regex' => 'hdnectar|nzbcave',
|
||||
@@ -103,8 +94,7 @@ class BinaryblacklistTableSeeder extends Seeder
|
||||
'description' => 'Bad releases.',
|
||||
'last_activity' => null,
|
||||
],
|
||||
8 =>
|
||||
[
|
||||
8 => [
|
||||
'id' => 9,
|
||||
'groupname' => 'alt\\.binaries\\..*',
|
||||
'regex' => 'Passworded',
|
||||
@@ -114,8 +104,7 @@ class BinaryblacklistTableSeeder extends Seeder
|
||||
'description' => 'Removes passworded releases.',
|
||||
'last_activity' => null,
|
||||
],
|
||||
9 =>
|
||||
[
|
||||
9 => [
|
||||
'id' => 10,
|
||||
'groupname' => 'alt\\.binaries\\.(boneless|movies\\.divx)',
|
||||
'regex' => '((Frkz|info)@XviD2?|x?VIDZ?@pwrpst|movies@movies?)\\.net|(hsv\\.stoned@hotmail|unequal87@gmail|ilove@movies)\\.com',
|
||||
@@ -125,8 +114,7 @@ class BinaryblacklistTableSeeder extends Seeder
|
||||
'description' => 'Virus codec posters.',
|
||||
'last_activity' => null,
|
||||
],
|
||||
10 =>
|
||||
[
|
||||
10 => [
|
||||
'id' => 11,
|
||||
'groupname' => 'alt\\.binaries\\.tun',
|
||||
'regex' => '\\[PRiVATE\\]\\s+[a-z0-9]+ ',
|
||||
@@ -136,8 +124,7 @@ class BinaryblacklistTableSeeder extends Seeder
|
||||
'description' => 'Passworded/Encrypted junk.',
|
||||
'last_activity' => null,
|
||||
],
|
||||
11 =>
|
||||
[
|
||||
11 => [
|
||||
'id' => 12,
|
||||
'groupname' => '^alt\\.binaries\\.teevee$',
|
||||
'regex' => '^\\[KoreanTV\\] ',
|
||||
@@ -147,8 +134,7 @@ class BinaryblacklistTableSeeder extends Seeder
|
||||
'description' => 'Blocks posts by koreantv.',
|
||||
'last_activity' => null,
|
||||
],
|
||||
12 =>
|
||||
[
|
||||
12 => [
|
||||
'id' => 13,
|
||||
'groupname' => '^alt\\.binaries\\.(kenpsx|frogs)$',
|
||||
'regex' => '^\\s*([a-f0-9]{16})\\s\\[\\d+\\/\\d+\\]\\s-\\s\\"\\1\\"\\s+yEnc$',
|
||||
@@ -158,8 +144,7 @@ class BinaryblacklistTableSeeder extends Seeder
|
||||
'description' => 'Block 16 character hash floods in kenpsx frogs.',
|
||||
'last_activity' => null,
|
||||
],
|
||||
13 =>
|
||||
[
|
||||
13 => [
|
||||
'id' => 14,
|
||||
'groupname' => '^alt\\.binaries\\.multimedia\\.korean$',
|
||||
'regex' => 'TESTMAN',
|
||||
@@ -169,8 +154,7 @@ class BinaryblacklistTableSeeder extends Seeder
|
||||
'description' => 'Posts by TESTMAN (jpegs)',
|
||||
'last_activity' => null,
|
||||
],
|
||||
14 =>
|
||||
[
|
||||
14 => [
|
||||
'id' => 15,
|
||||
'groupname' => '^alt\\.binaries\\.multimedia\\.korean$',
|
||||
'regex' => '^yEnc ".+torrent"$',
|
||||
@@ -180,8 +164,7 @@ class BinaryblacklistTableSeeder extends Seeder
|
||||
'description' => 'torrent uploads ::: yEnc "SBS ÃñⰡ¿ä.E690.120916.HDTV.H264.720p-KOR.avi.torrent"',
|
||||
'last_activity' => null,
|
||||
],
|
||||
15 =>
|
||||
[
|
||||
15 => [
|
||||
'id' => 16,
|
||||
'groupname' => '^korea\\.binaries\\.movies$',
|
||||
'regex' => '^.[?(Kornet|SK|xpeed|KT)]?',
|
||||
@@ -191,8 +174,7 @@ class BinaryblacklistTableSeeder extends Seeder
|
||||
'description' => 'Incomplete releases',
|
||||
'last_activity' => null,
|
||||
],
|
||||
16 =>
|
||||
[
|
||||
16 => [
|
||||
'id' => 17,
|
||||
'groupname' => '^korea\\.binaries\\.movies$',
|
||||
'regex' => '^(top@top.t \\(top\\)|shit@xxxxxxxxaa.com \\(shit\\)|none@nonemail.com \\(none\\))$',
|
||||
@@ -202,8 +184,7 @@ class BinaryblacklistTableSeeder extends Seeder
|
||||
'description' => 'incomplete cryptic releases',
|
||||
'last_activity' => null,
|
||||
],
|
||||
17 =>
|
||||
[
|
||||
17 => [
|
||||
'id' => 18,
|
||||
'groupname' => '^korea\\.binaries\\.movies$',
|
||||
'regex' => '^filzilla6@web\\.de \\(Baruth\\)$',
|
||||
|
||||
@@ -4,9 +4,8 @@ use Illuminate\Database\Seeder;
|
||||
|
||||
class CategoriesTableSeeder extends Seeder
|
||||
{
|
||||
|
||||
/**
|
||||
* Auto generated seed file
|
||||
* Auto generated seed file.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
@@ -17,8 +16,7 @@ class CategoriesTableSeeder extends Seeder
|
||||
\DB::table('categories')->delete();
|
||||
|
||||
\DB::table('categories')->insert([
|
||||
1 =>
|
||||
[
|
||||
1 => [
|
||||
'id' => 10,
|
||||
'title' => 'Misc',
|
||||
'root_categories_id' => 1,
|
||||
@@ -28,8 +26,7 @@ class CategoriesTableSeeder extends Seeder
|
||||
'minsizetoformrelease' => 0,
|
||||
'maxsizetoformrelease' => 0,
|
||||
],
|
||||
2 =>
|
||||
[
|
||||
2 => [
|
||||
'id' => 20,
|
||||
'title' => 'Hashed',
|
||||
'root_categories_id' => 1,
|
||||
@@ -39,8 +36,7 @@ class CategoriesTableSeeder extends Seeder
|
||||
'minsizetoformrelease' => 0,
|
||||
'maxsizetoformrelease' => 0,
|
||||
],
|
||||
4 =>
|
||||
[
|
||||
4 => [
|
||||
'id' => 1010,
|
||||
'title' => 'NDS',
|
||||
'root_categories_id' => 1000,
|
||||
@@ -50,8 +46,7 @@ class CategoriesTableSeeder extends Seeder
|
||||
'minsizetoformrelease' => 0,
|
||||
'maxsizetoformrelease' => 0,
|
||||
],
|
||||
5 =>
|
||||
[
|
||||
5 => [
|
||||
'id' => 1020,
|
||||
'title' => 'PSP',
|
||||
'root_categories_id' => 1000,
|
||||
@@ -61,8 +56,7 @@ class CategoriesTableSeeder extends Seeder
|
||||
'minsizetoformrelease' => 0,
|
||||
'maxsizetoformrelease' => 0,
|
||||
],
|
||||
6 =>
|
||||
[
|
||||
6 => [
|
||||
'id' => 1030,
|
||||
'title' => 'Wii',
|
||||
'root_categories_id' => 1000,
|
||||
@@ -72,8 +66,7 @@ class CategoriesTableSeeder extends Seeder
|
||||
'minsizetoformrelease' => 0,
|
||||
'maxsizetoformrelease' => 0,
|
||||
],
|
||||
7 =>
|
||||
[
|
||||
7 => [
|
||||
'id' => 1040,
|
||||
'title' => 'Xbox',
|
||||
'root_categories_id' => 1000,
|
||||
@@ -83,8 +76,7 @@ class CategoriesTableSeeder extends Seeder
|
||||
'minsizetoformrelease' => 0,
|
||||
'maxsizetoformrelease' => 0,
|
||||
],
|
||||
8 =>
|
||||
[
|
||||
8 => [
|
||||
'id' => 1050,
|
||||
'title' => 'Xbox 360',
|
||||
'root_categories_id' => 1000,
|
||||
@@ -94,8 +86,7 @@ class CategoriesTableSeeder extends Seeder
|
||||
'minsizetoformrelease' => 0,
|
||||
'maxsizetoformrelease' => 0,
|
||||
],
|
||||
9 =>
|
||||
[
|
||||
9 => [
|
||||
'id' => 1060,
|
||||
'title' => 'WiiWare VC',
|
||||
'root_categories_id' => 1000,
|
||||
@@ -105,8 +96,7 @@ class CategoriesTableSeeder extends Seeder
|
||||
'minsizetoformrelease' => 0,
|
||||
'maxsizetoformrelease' => 0,
|
||||
],
|
||||
10 =>
|
||||
[
|
||||
10 => [
|
||||
'id' => 1070,
|
||||
'title' => 'Xbox 360 DLC',
|
||||
'root_categories_id' => 1000,
|
||||
@@ -116,8 +106,7 @@ class CategoriesTableSeeder extends Seeder
|
||||
'minsizetoformrelease' => 0,
|
||||
'maxsizetoformrelease' => 0,
|
||||
],
|
||||
11 =>
|
||||
[
|
||||
11 => [
|
||||
'id' => 1080,
|
||||
'title' => 'PS3',
|
||||
'root_categories_id' => 1000,
|
||||
@@ -127,8 +116,7 @@ class CategoriesTableSeeder extends Seeder
|
||||
'minsizetoformrelease' => 0,
|
||||
'maxsizetoformrelease' => 0,
|
||||
],
|
||||
12 =>
|
||||
[
|
||||
12 => [
|
||||
'id' => 1110,
|
||||
'title' => '3DS',
|
||||
'root_categories_id' => 1000,
|
||||
@@ -138,8 +126,7 @@ class CategoriesTableSeeder extends Seeder
|
||||
'minsizetoformrelease' => 0,
|
||||
'maxsizetoformrelease' => 0,
|
||||
],
|
||||
13 =>
|
||||
[
|
||||
13 => [
|
||||
'id' => 1120,
|
||||
'title' => 'PS Vita',
|
||||
'root_categories_id' => 1000,
|
||||
@@ -149,8 +136,7 @@ class CategoriesTableSeeder extends Seeder
|
||||
'minsizetoformrelease' => 0,
|
||||
'maxsizetoformrelease' => 0,
|
||||
],
|
||||
14 =>
|
||||
[
|
||||
14 => [
|
||||
'id' => 1130,
|
||||
'title' => 'WiiU',
|
||||
'root_categories_id' => 1000,
|
||||
@@ -160,8 +146,7 @@ class CategoriesTableSeeder extends Seeder
|
||||
'minsizetoformrelease' => 0,
|
||||
'maxsizetoformrelease' => 0,
|
||||
],
|
||||
15 =>
|
||||
[
|
||||
15 => [
|
||||
'id' => 1140,
|
||||
'title' => 'Xbox One',
|
||||
'root_categories_id' => 1000,
|
||||
@@ -171,8 +156,7 @@ class CategoriesTableSeeder extends Seeder
|
||||
'minsizetoformrelease' => 0,
|
||||
'maxsizetoformrelease' => 0,
|
||||
],
|
||||
16 =>
|
||||
[
|
||||
16 => [
|
||||
'id' => 1180,
|
||||
'title' => 'PS4',
|
||||
'root_categories_id' => 1000,
|
||||
@@ -182,8 +166,7 @@ class CategoriesTableSeeder extends Seeder
|
||||
'minsizetoformrelease' => 0,
|
||||
'maxsizetoformrelease' => 0,
|
||||
],
|
||||
17 =>
|
||||
[
|
||||
17 => [
|
||||
'id' => 1999,
|
||||
'title' => 'Other',
|
||||
'root_categories_id' => 1000,
|
||||
@@ -193,8 +176,7 @@ class CategoriesTableSeeder extends Seeder
|
||||
'minsizetoformrelease' => 0,
|
||||
'maxsizetoformrelease' => 0,
|
||||
],
|
||||
19 =>
|
||||
[
|
||||
19 => [
|
||||
'id' => 2010,
|
||||
'title' => 'Foreign',
|
||||
'root_categories_id' => 2000,
|
||||
@@ -204,8 +186,7 @@ class CategoriesTableSeeder extends Seeder
|
||||
'minsizetoformrelease' => 0,
|
||||
'maxsizetoformrelease' => 0,
|
||||
],
|
||||
20 =>
|
||||
[
|
||||
20 => [
|
||||
'id' => 2030,
|
||||
'title' => 'SD',
|
||||
'root_categories_id' => 2000,
|
||||
@@ -215,8 +196,7 @@ class CategoriesTableSeeder extends Seeder
|
||||
'minsizetoformrelease' => 0,
|
||||
'maxsizetoformrelease' => 0,
|
||||
],
|
||||
21 =>
|
||||
[
|
||||
21 => [
|
||||
'id' => 2040,
|
||||
'title' => 'HD',
|
||||
'root_categories_id' => 2000,
|
||||
@@ -226,8 +206,7 @@ class CategoriesTableSeeder extends Seeder
|
||||
'minsizetoformrelease' => 0,
|
||||
'maxsizetoformrelease' => 0,
|
||||
],
|
||||
22 =>
|
||||
[
|
||||
22 => [
|
||||
'id' => 2045,
|
||||
'title' => 'UHD',
|
||||
'root_categories_id' => 2000,
|
||||
@@ -237,8 +216,7 @@ class CategoriesTableSeeder extends Seeder
|
||||
'minsizetoformrelease' => 0,
|
||||
'maxsizetoformrelease' => 0,
|
||||
],
|
||||
23 =>
|
||||
[
|
||||
23 => [
|
||||
'id' => 2050,
|
||||
'title' => '3D',
|
||||
'root_categories_id' => 2000,
|
||||
@@ -248,8 +226,7 @@ class CategoriesTableSeeder extends Seeder
|
||||
'minsizetoformrelease' => 0,
|
||||
'maxsizetoformrelease' => 0,
|
||||
],
|
||||
24 =>
|
||||
[
|
||||
24 => [
|
||||
'id' => 2060,
|
||||
'title' => 'BluRay',
|
||||
'root_categories_id' => 2000,
|
||||
@@ -259,8 +236,7 @@ class CategoriesTableSeeder extends Seeder
|
||||
'minsizetoformrelease' => 0,
|
||||
'maxsizetoformrelease' => 0,
|
||||
],
|
||||
25 =>
|
||||
[
|
||||
25 => [
|
||||
'id' => 2070,
|
||||
'title' => 'DVD',
|
||||
'root_categories_id' => 2000,
|
||||
@@ -270,8 +246,7 @@ class CategoriesTableSeeder extends Seeder
|
||||
'minsizetoformrelease' => 0,
|
||||
'maxsizetoformrelease' => 0,
|
||||
],
|
||||
26 =>
|
||||
[
|
||||
26 => [
|
||||
'id' => 2080,
|
||||
'title' => 'WEBDL',
|
||||
'root_categories_id' => 2000,
|
||||
@@ -281,8 +256,7 @@ class CategoriesTableSeeder extends Seeder
|
||||
'minsizetoformrelease' => 0,
|
||||
'maxsizetoformrelease' => 0,
|
||||
],
|
||||
27 =>
|
||||
[
|
||||
27 => [
|
||||
'id' => 2999,
|
||||
'title' => 'Other',
|
||||
'root_categories_id' => 2000,
|
||||
@@ -292,8 +266,7 @@ class CategoriesTableSeeder extends Seeder
|
||||
'minsizetoformrelease' => 0,
|
||||
'maxsizetoformrelease' => 0,
|
||||
],
|
||||
29 =>
|
||||
[
|
||||
29 => [
|
||||
'id' => 3010,
|
||||
'title' => 'MP3',
|
||||
'root_categories_id' => 3000,
|
||||
@@ -303,8 +276,7 @@ class CategoriesTableSeeder extends Seeder
|
||||
'minsizetoformrelease' => 0,
|
||||
'maxsizetoformrelease' => 0,
|
||||
],
|
||||
30 =>
|
||||
[
|
||||
30 => [
|
||||
'id' => 3020,
|
||||
'title' => 'Video',
|
||||
'root_categories_id' => 3000,
|
||||
@@ -314,8 +286,7 @@ class CategoriesTableSeeder extends Seeder
|
||||
'minsizetoformrelease' => 0,
|
||||
'maxsizetoformrelease' => 0,
|
||||
],
|
||||
31 =>
|
||||
[
|
||||
31 => [
|
||||
'id' => 3030,
|
||||
'title' => 'Audiobook',
|
||||
'root_categories_id' => 3000,
|
||||
@@ -325,8 +296,7 @@ class CategoriesTableSeeder extends Seeder
|
||||
'minsizetoformrelease' => 0,
|
||||
'maxsizetoformrelease' => 0,
|
||||
],
|
||||
32 =>
|
||||
[
|
||||
32 => [
|
||||
'id' => 3040,
|
||||
'title' => 'Lossless',
|
||||
'root_categories_id' => 3000,
|
||||
@@ -336,8 +306,7 @@ class CategoriesTableSeeder extends Seeder
|
||||
'minsizetoformrelease' => 0,
|
||||
'maxsizetoformrelease' => 0,
|
||||
],
|
||||
33 =>
|
||||
[
|
||||
33 => [
|
||||
'id' => 3060,
|
||||
'title' => 'Foreign',
|
||||
'root_categories_id' => 3000,
|
||||
@@ -347,8 +316,7 @@ class CategoriesTableSeeder extends Seeder
|
||||
'minsizetoformrelease' => 0,
|
||||
'maxsizetoformrelease' => 0,
|
||||
],
|
||||
34 =>
|
||||
[
|
||||
34 => [
|
||||
'id' => 3999,
|
||||
'title' => 'Other',
|
||||
'root_categories_id' => 3000,
|
||||
@@ -358,8 +326,7 @@ class CategoriesTableSeeder extends Seeder
|
||||
'minsizetoformrelease' => 0,
|
||||
'maxsizetoformrelease' => 0,
|
||||
],
|
||||
36 =>
|
||||
[
|
||||
36 => [
|
||||
'id' => 4010,
|
||||
'title' => '0day',
|
||||
'root_categories_id' => 4000,
|
||||
@@ -369,8 +336,7 @@ class CategoriesTableSeeder extends Seeder
|
||||
'minsizetoformrelease' => 0,
|
||||
'maxsizetoformrelease' => 0,
|
||||
],
|
||||
37 =>
|
||||
[
|
||||
37 => [
|
||||
'id' => 4020,
|
||||
'title' => 'ISO',
|
||||
'root_categories_id' => 4000,
|
||||
@@ -380,8 +346,7 @@ class CategoriesTableSeeder extends Seeder
|
||||
'minsizetoformrelease' => 0,
|
||||
'maxsizetoformrelease' => 0,
|
||||
],
|
||||
38 =>
|
||||
[
|
||||
38 => [
|
||||
'id' => 4030,
|
||||
'title' => 'Mac',
|
||||
'root_categories_id' => 4000,
|
||||
@@ -391,8 +356,7 @@ class CategoriesTableSeeder extends Seeder
|
||||
'minsizetoformrelease' => 0,
|
||||
'maxsizetoformrelease' => 0,
|
||||
],
|
||||
39 =>
|
||||
[
|
||||
39 => [
|
||||
'id' => 4050,
|
||||
'title' => 'Games',
|
||||
'root_categories_id' => 4000,
|
||||
@@ -402,8 +366,7 @@ class CategoriesTableSeeder extends Seeder
|
||||
'minsizetoformrelease' => 0,
|
||||
'maxsizetoformrelease' => 0,
|
||||
],
|
||||
40 =>
|
||||
[
|
||||
40 => [
|
||||
'id' => 4060,
|
||||
'title' => 'Phone-IOS',
|
||||
'root_categories_id' => 4000,
|
||||
@@ -413,8 +376,7 @@ class CategoriesTableSeeder extends Seeder
|
||||
'minsizetoformrelease' => 0,
|
||||
'maxsizetoformrelease' => 0,
|
||||
],
|
||||
41 =>
|
||||
[
|
||||
41 => [
|
||||
'id' => 4070,
|
||||
'title' => 'Phone-Android',
|
||||
'root_categories_id' => 4000,
|
||||
@@ -424,8 +386,7 @@ class CategoriesTableSeeder extends Seeder
|
||||
'minsizetoformrelease' => 0,
|
||||
'maxsizetoformrelease' => 0,
|
||||
],
|
||||
42 =>
|
||||
[
|
||||
42 => [
|
||||
'id' => 4999,
|
||||
'title' => 'Phone-Other',
|
||||
'root_categories_id' => 4000,
|
||||
@@ -435,8 +396,7 @@ class CategoriesTableSeeder extends Seeder
|
||||
'minsizetoformrelease' => 0,
|
||||
'maxsizetoformrelease' => 0,
|
||||
],
|
||||
44 =>
|
||||
[
|
||||
44 => [
|
||||
'id' => 5010,
|
||||
'title' => 'WEB-DL',
|
||||
'root_categories_id' => 5000,
|
||||
@@ -446,8 +406,7 @@ class CategoriesTableSeeder extends Seeder
|
||||
'minsizetoformrelease' => 0,
|
||||
'maxsizetoformrelease' => 0,
|
||||
],
|
||||
45 =>
|
||||
[
|
||||
45 => [
|
||||
'id' => 5020,
|
||||
'title' => 'Foreign',
|
||||
'root_categories_id' => 5000,
|
||||
@@ -457,8 +416,7 @@ class CategoriesTableSeeder extends Seeder
|
||||
'minsizetoformrelease' => 0,
|
||||
'maxsizetoformrelease' => 0,
|
||||
],
|
||||
46 =>
|
||||
[
|
||||
46 => [
|
||||
'id' => 5030,
|
||||
'title' => 'SD',
|
||||
'root_categories_id' => 5000,
|
||||
@@ -468,8 +426,7 @@ class CategoriesTableSeeder extends Seeder
|
||||
'minsizetoformrelease' => 0,
|
||||
'maxsizetoformrelease' => 0,
|
||||
],
|
||||
47 =>
|
||||
[
|
||||
47 => [
|
||||
'id' => 5040,
|
||||
'title' => 'HD',
|
||||
'root_categories_id' => 5000,
|
||||
@@ -479,8 +436,7 @@ class CategoriesTableSeeder extends Seeder
|
||||
'minsizetoformrelease' => 0,
|
||||
'maxsizetoformrelease' => 0,
|
||||
],
|
||||
48 =>
|
||||
[
|
||||
48 => [
|
||||
'id' => 5045,
|
||||
'title' => 'UHD',
|
||||
'root_categories_id' => 5000,
|
||||
@@ -490,8 +446,7 @@ class CategoriesTableSeeder extends Seeder
|
||||
'minsizetoformrelease' => 0,
|
||||
'maxsizetoformrelease' => 0,
|
||||
],
|
||||
49 =>
|
||||
[
|
||||
49 => [
|
||||
'id' => 5060,
|
||||
'title' => 'Sport',
|
||||
'root_categories_id' => 5000,
|
||||
@@ -501,8 +456,7 @@ class CategoriesTableSeeder extends Seeder
|
||||
'minsizetoformrelease' => 0,
|
||||
'maxsizetoformrelease' => 0,
|
||||
],
|
||||
50 =>
|
||||
[
|
||||
50 => [
|
||||
'id' => 5070,
|
||||
'title' => 'Anime',
|
||||
'root_categories_id' => 5000,
|
||||
@@ -512,8 +466,7 @@ class CategoriesTableSeeder extends Seeder
|
||||
'minsizetoformrelease' => 0,
|
||||
'maxsizetoformrelease' => 0,
|
||||
],
|
||||
51 =>
|
||||
[
|
||||
51 => [
|
||||
'id' => 5080,
|
||||
'title' => 'Documentary',
|
||||
'root_categories_id' => 5000,
|
||||
@@ -523,8 +476,7 @@ class CategoriesTableSeeder extends Seeder
|
||||
'minsizetoformrelease' => 0,
|
||||
'maxsizetoformrelease' => 0,
|
||||
],
|
||||
52 =>
|
||||
[
|
||||
52 => [
|
||||
'id' => 5999,
|
||||
'title' => 'Other',
|
||||
'root_categories_id' => 5000,
|
||||
@@ -534,8 +486,7 @@ class CategoriesTableSeeder extends Seeder
|
||||
'minsizetoformrelease' => 0,
|
||||
'maxsizetoformrelease' => 0,
|
||||
],
|
||||
54 =>
|
||||
[
|
||||
54 => [
|
||||
'id' => 6010,
|
||||
'title' => 'DVD',
|
||||
'root_categories_id' => 6000,
|
||||
@@ -545,8 +496,7 @@ class CategoriesTableSeeder extends Seeder
|
||||
'minsizetoformrelease' => 0,
|
||||
'maxsizetoformrelease' => 0,
|
||||
],
|
||||
55 =>
|
||||
[
|
||||
55 => [
|
||||
'id' => 6020,
|
||||
'title' => 'WMV',
|
||||
'root_categories_id' => 6000,
|
||||
@@ -556,8 +506,7 @@ class CategoriesTableSeeder extends Seeder
|
||||
'minsizetoformrelease' => 0,
|
||||
'maxsizetoformrelease' => 0,
|
||||
],
|
||||
56 =>
|
||||
[
|
||||
56 => [
|
||||
'id' => 6030,
|
||||
'title' => 'XviD',
|
||||
'root_categories_id' => 6000,
|
||||
@@ -567,8 +516,7 @@ class CategoriesTableSeeder extends Seeder
|
||||
'minsizetoformrelease' => 0,
|
||||
'maxsizetoformrelease' => 0,
|
||||
],
|
||||
57 =>
|
||||
[
|
||||
57 => [
|
||||
'id' => 6040,
|
||||
'title' => 'x264',
|
||||
'root_categories_id' => 6000,
|
||||
@@ -578,8 +526,7 @@ class CategoriesTableSeeder extends Seeder
|
||||
'minsizetoformrelease' => 0,
|
||||
'maxsizetoformrelease' => 0,
|
||||
],
|
||||
58 =>
|
||||
[
|
||||
58 => [
|
||||
'id' => 6041,
|
||||
'title' => 'HD Clips',
|
||||
'root_categories_id' => 6000,
|
||||
@@ -589,8 +536,7 @@ class CategoriesTableSeeder extends Seeder
|
||||
'minsizetoformrelease' => 0,
|
||||
'maxsizetoformrelease' => 0,
|
||||
],
|
||||
59 =>
|
||||
[
|
||||
59 => [
|
||||
'id' => 6042,
|
||||
'title' => 'SD Clips',
|
||||
'root_categories_id' => 6000,
|
||||
@@ -600,8 +546,7 @@ class CategoriesTableSeeder extends Seeder
|
||||
'minsizetoformrelease' => 0,
|
||||
'maxsizetoformrelease' => 0,
|
||||
],
|
||||
60 =>
|
||||
[
|
||||
60 => [
|
||||
'id' => 6045,
|
||||
'title' => 'UHD',
|
||||
'root_categories_id' => 6000,
|
||||
@@ -611,8 +556,7 @@ class CategoriesTableSeeder extends Seeder
|
||||
'minsizetoformrelease' => 0,
|
||||
'maxsizetoformrelease' => 0,
|
||||
],
|
||||
61 =>
|
||||
[
|
||||
61 => [
|
||||
'id' => 6060,
|
||||
'title' => 'Imageset',
|
||||
'root_categories_id' => 6000,
|
||||
@@ -622,8 +566,7 @@ class CategoriesTableSeeder extends Seeder
|
||||
'minsizetoformrelease' => 0,
|
||||
'maxsizetoformrelease' => 0,
|
||||
],
|
||||
62 =>
|
||||
[
|
||||
62 => [
|
||||
'id' => 6070,
|
||||
'title' => 'Packs',
|
||||
'root_categories_id' => 6000,
|
||||
@@ -633,8 +576,7 @@ class CategoriesTableSeeder extends Seeder
|
||||
'minsizetoformrelease' => 0,
|
||||
'maxsizetoformrelease' => 0,
|
||||
],
|
||||
63 =>
|
||||
[
|
||||
63 => [
|
||||
'id' => 6080,
|
||||
'title' => 'SD',
|
||||
'root_categories_id' => 6000,
|
||||
@@ -644,8 +586,7 @@ class CategoriesTableSeeder extends Seeder
|
||||
'minsizetoformrelease' => 0,
|
||||
'maxsizetoformrelease' => 0,
|
||||
],
|
||||
64 =>
|
||||
[
|
||||
64 => [
|
||||
'id' => 6090,
|
||||
'title' => 'WEBDL',
|
||||
'root_categories_id' => 6000,
|
||||
@@ -655,8 +596,7 @@ class CategoriesTableSeeder extends Seeder
|
||||
'minsizetoformrelease' => 0,
|
||||
'maxsizetoformrelease' => 0,
|
||||
],
|
||||
65 =>
|
||||
[
|
||||
65 => [
|
||||
'id' => 6999,
|
||||
'title' => 'Other',
|
||||
'root_categories_id' => 6000,
|
||||
@@ -666,8 +606,7 @@ class CategoriesTableSeeder extends Seeder
|
||||
'minsizetoformrelease' => 0,
|
||||
'maxsizetoformrelease' => 0,
|
||||
],
|
||||
67 =>
|
||||
[
|
||||
67 => [
|
||||
'id' => 7010,
|
||||
'title' => 'Ebook',
|
||||
'root_categories_id' => 7000,
|
||||
@@ -677,8 +616,7 @@ class CategoriesTableSeeder extends Seeder
|
||||
'minsizetoformrelease' => 0,
|
||||
'maxsizetoformrelease' => 0,
|
||||
],
|
||||
68 =>
|
||||
[
|
||||
68 => [
|
||||
'id' => 7020,
|
||||
'title' => 'Comics',
|
||||
'root_categories_id' => 7000,
|
||||
@@ -688,8 +626,7 @@ class CategoriesTableSeeder extends Seeder
|
||||
'minsizetoformrelease' => 0,
|
||||
'maxsizetoformrelease' => 0,
|
||||
],
|
||||
69 =>
|
||||
[
|
||||
69 => [
|
||||
'id' => 7030,
|
||||
'title' => 'Magazines',
|
||||
'root_categories_id' => 7000,
|
||||
@@ -699,8 +636,7 @@ class CategoriesTableSeeder extends Seeder
|
||||
'minsizetoformrelease' => 0,
|
||||
'maxsizetoformrelease' => 0,
|
||||
],
|
||||
70 =>
|
||||
[
|
||||
70 => [
|
||||
'id' => 7040,
|
||||
'title' => 'Technical',
|
||||
'root_categories_id' => 7000,
|
||||
@@ -710,8 +646,7 @@ class CategoriesTableSeeder extends Seeder
|
||||
'minsizetoformrelease' => 0,
|
||||
'maxsizetoformrelease' => 0,
|
||||
],
|
||||
71 =>
|
||||
[
|
||||
71 => [
|
||||
'id' => 7060,
|
||||
'title' => 'Foreign',
|
||||
'root_categories_id' => 7000,
|
||||
@@ -721,8 +656,7 @@ class CategoriesTableSeeder extends Seeder
|
||||
'minsizetoformrelease' => 0,
|
||||
'maxsizetoformrelease' => 0,
|
||||
],
|
||||
72 =>
|
||||
[
|
||||
72 => [
|
||||
'id' => 7999,
|
||||
'title' => 'Other',
|
||||
'root_categories_id' => 7000,
|
||||
@@ -732,8 +666,7 @@ class CategoriesTableSeeder extends Seeder
|
||||
'minsizetoformrelease' => 0,
|
||||
'maxsizetoformrelease' => 0,
|
||||
],
|
||||
73 =>
|
||||
[
|
||||
73 => [
|
||||
'id' => 2090,
|
||||
'title' => 'X265',
|
||||
'root_categories_id' => 2000,
|
||||
@@ -743,8 +676,7 @@ class CategoriesTableSeeder extends Seeder
|
||||
'minsizetoformrelease' => 0,
|
||||
'maxsizetoformrelease' => 0,
|
||||
],
|
||||
74 =>
|
||||
[
|
||||
74 => [
|
||||
'id' => 5090,
|
||||
'title' => 'X265',
|
||||
'root_categories_id' => 5000,
|
||||
|
||||
@@ -4,9 +4,8 @@ use Illuminate\Database\Seeder;
|
||||
|
||||
class CategoryRegexesTableSeeder extends Seeder
|
||||
{
|
||||
|
||||
/**
|
||||
* Auto generated seed file
|
||||
* Auto generated seed file.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
@@ -15,8 +14,7 @@ class CategoryRegexesTableSeeder extends Seeder
|
||||
\DB::table('category_regexes')->delete();
|
||||
|
||||
\DB::table('category_regexes')->insert([
|
||||
0 =>
|
||||
[
|
||||
0 => [
|
||||
'id' => 1,
|
||||
'group_regex' => '^alt\\.binaries\\.sony\\.psvita$',
|
||||
'regex' => '/.*/ ',
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -4,9 +4,8 @@ use Illuminate\Database\Seeder;
|
||||
|
||||
class ContentTableSeeder extends Seeder
|
||||
{
|
||||
|
||||
/**
|
||||
* Auto generated seed file
|
||||
* Auto generated seed file.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
@@ -15,8 +14,7 @@ class ContentTableSeeder extends Seeder
|
||||
\DB::table('content')->delete();
|
||||
|
||||
\DB::table('content')->insert([
|
||||
0 =>
|
||||
[
|
||||
0 => [
|
||||
'id' => 1,
|
||||
'title' => 'Welcome to NNTmux.',
|
||||
'url' => 'NULL',
|
||||
@@ -29,8 +27,7 @@ class ContentTableSeeder extends Seeder
|
||||
'ordinal' => 0,
|
||||
'role' => 0,
|
||||
],
|
||||
1 =>
|
||||
[
|
||||
1 => [
|
||||
'id' => 2,
|
||||
'title' => 'example content',
|
||||
'url' => '/great/seo/content/page/',
|
||||
@@ -43,8 +40,7 @@ class ContentTableSeeder extends Seeder
|
||||
'ordinal' => 1,
|
||||
'role' => 0,
|
||||
],
|
||||
2 =>
|
||||
[
|
||||
2 => [
|
||||
'id' => 3,
|
||||
'title' => 'another example',
|
||||
'url' => '/another/great/seo/content/page/',
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
use Bhuvidya\Countries\CountriesSeeder;
|
||||
use Illuminate\Database\Seeder;
|
||||
use Bhuvidya\Countries\CountriesSeeder;
|
||||
|
||||
class DatabaseSeeder extends Seeder
|
||||
{
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -1,8 +1,8 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Seeder;
|
||||
use Spatie\Permission\Models\Permission;
|
||||
use Spatie\Permission\Models\Role;
|
||||
use Spatie\Permission\Models\Permission;
|
||||
|
||||
class RolesAndPermissionsSeeder extends Seeder
|
||||
{
|
||||
@@ -29,7 +29,6 @@ class RolesAndPermissionsSeeder extends Seeder
|
||||
Permission::create(['name' => 'view books']);
|
||||
Permission::create(['name' => 'view other']);
|
||||
|
||||
|
||||
// create roles and assign created permissions
|
||||
|
||||
$roleUser = Role::create(
|
||||
|
||||
@@ -10,57 +10,49 @@ class RootCategoriesTableSeeder extends Seeder
|
||||
|
||||
\DB::table('root_categories')->insert(
|
||||
[
|
||||
0 =>
|
||||
[
|
||||
0 => [
|
||||
'id' => 1,
|
||||
'title' => 'Other',
|
||||
'status' => 1,
|
||||
'disablepreview' => 0,
|
||||
],
|
||||
1 =>
|
||||
[
|
||||
1 => [
|
||||
'id' => 1000,
|
||||
'title' => 'Console',
|
||||
'status' => 1,
|
||||
'disablepreview' => 0,
|
||||
],
|
||||
2 =>
|
||||
[
|
||||
2 => [
|
||||
'id' => 2000,
|
||||
'title' => 'Movies',
|
||||
'status' => 1,
|
||||
'disablepreview' => 0,
|
||||
],
|
||||
3 =>
|
||||
[
|
||||
3 => [
|
||||
'id' => 3000,
|
||||
'title' => 'Audio',
|
||||
'status' => 1,
|
||||
'disablepreview' => 0,
|
||||
],
|
||||
4 =>
|
||||
[
|
||||
4 => [
|
||||
'id' => 4000,
|
||||
'title' => 'PC',
|
||||
'status' => 1,
|
||||
'disablepreview' => 0,
|
||||
],
|
||||
5 =>
|
||||
[
|
||||
5 => [
|
||||
'id' => 5000,
|
||||
'title' => 'TV',
|
||||
'status' => 1,
|
||||
'disablepreview' => 0,
|
||||
],
|
||||
6 =>
|
||||
[
|
||||
6 => [
|
||||
'id' => 6000,
|
||||
'title' => 'XXX',
|
||||
'status' => 1,
|
||||
'disablepreview' => 0,
|
||||
],
|
||||
7 =>
|
||||
[
|
||||
7 => [
|
||||
'id' => 7000,
|
||||
'title' => 'Books',
|
||||
'status' => 1,
|
||||
|
||||
@@ -5,7 +5,7 @@ use Illuminate\Database\Seeder;
|
||||
class SettingsTableSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Auto generated seed file
|
||||
* Auto generated seed file.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
<?php
|
||||
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| API Routes
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
<?php
|
||||
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| RSS Routes
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
|
||||
namespace Tests\Feature;
|
||||
|
||||
use Blacklight\Books;
|
||||
use Tests\TestCase;
|
||||
use Blacklight\Books;
|
||||
|
||||
class GetBooksBrowseByOptionsTest extends TestCase
|
||||
{
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
<?php
|
||||
|
||||
namespace Tests\Feature;
|
||||
|
||||
use App\Models\Settings;
|
||||
use Tests\TestCase;
|
||||
use App\Models\Settings;
|
||||
|
||||
class SettingsTest extends TestCase
|
||||
{
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*
|
||||
* @package NNTmux
|
||||
* @author DariusIII
|
||||
* @copyright (c) 2017, NNTmux
|
||||
* @version 0.0.1
|
||||
@@ -13,19 +12,13 @@
|
||||
|
||||
namespace tests;
|
||||
|
||||
require_once \dirname(__DIR__, 2) . DIRECTORY_SEPARATOR . 'bootstrap/autoload.php';
|
||||
|
||||
require_once \dirname(__DIR__, 2).DIRECTORY_SEPARATOR.'bootstrap/autoload.php';
|
||||
|
||||
/**
|
||||
* Class InstallTest
|
||||
*
|
||||
* @package tests
|
||||
* Class InstallTest.
|
||||
*/
|
||||
class InstallTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
*
|
||||
*/
|
||||
public function testFullInstall()
|
||||
{
|
||||
passthru('php '.NN_ROOT.'artisan migrate:fresh --seed');
|
||||
|
||||
Reference in New Issue
Block a user