diff --git a/backend/database/migrations/2016_08_01_121249_create_items_table.php b/backend/database/migrations/2016_08_01_121249_create_items_table.php index acca53e..1f5f395 100644 --- a/backend/database/migrations/2016_08_01_121249_create_items_table.php +++ b/backend/database/migrations/2016_08_01_121249_create_items_table.php @@ -21,8 +21,5 @@ class CreateItemsTable extends Migration }); } - public function down() - { - Schema::dropIfExists('items'); - } + public function down() {} } diff --git a/backend/database/migrations/2016_08_05_132344_create_users_table.php b/backend/database/migrations/2016_08_05_132344_create_users_table.php index 58131dc..f5dd925 100644 --- a/backend/database/migrations/2016_08_05_132344_create_users_table.php +++ b/backend/database/migrations/2016_08_05_132344_create_users_table.php @@ -16,8 +16,5 @@ class CreateUsersTable extends Migration }); } - public function down() - { - Schema::dropIfExists('users'); - } + public function down() {} } diff --git a/backend/database/migrations/2016_10_18_063806_create_settings_table.php b/backend/database/migrations/2016_10_18_063806_create_settings_table.php index 7c91846..dbe513f 100644 --- a/backend/database/migrations/2016_10_18_063806_create_settings_table.php +++ b/backend/database/migrations/2016_10_18_063806_create_settings_table.php @@ -21,8 +21,5 @@ class CreateSettingsTable extends Migration ]); } - public function down() - { - Schema::dropIfExists('settings'); - } + public function down() {} } diff --git a/backend/database/migrations/2016_11_25_090131_create_episodes_table.php b/backend/database/migrations/2016_11_25_090131_create_episodes_table.php index 83aaec7..84b6ed2 100644 --- a/backend/database/migrations/2016_11_25_090131_create_episodes_table.php +++ b/backend/database/migrations/2016_11_25_090131_create_episodes_table.php @@ -20,8 +20,5 @@ class CreateEpisodesTable extends Migration }); } - public function down() - { - Schema::dropIfExists('episodes'); - } + public function down() {} } diff --git a/backend/database/migrations/2016_11_29_110058_add_created_at_field.php b/backend/database/migrations/2016_11_29_110058_add_created_at_field.php index febeb60..f5ce2bd 100644 --- a/backend/database/migrations/2016_11_29_110058_add_created_at_field.php +++ b/backend/database/migrations/2016_11_29_110058_add_created_at_field.php @@ -13,10 +13,5 @@ class AddCreatedAtField extends Migration }); } - public function down() - { - Schema::table('episodes', function (Blueprint $table) { - $table->dropColumn('created_at'); - }); - } + public function down() {} } diff --git a/backend/database/migrations/2016_12_12_074211_add_episode_spoiler_protection_field.php b/backend/database/migrations/2016_12_12_074211_add_episode_spoiler_protection_field.php index f5605e8..69cc0d4 100644 --- a/backend/database/migrations/2016_12_12_074211_add_episode_spoiler_protection_field.php +++ b/backend/database/migrations/2016_12_12_074211_add_episode_spoiler_protection_field.php @@ -13,10 +13,5 @@ class AddEpisodeSpoilerProtectionField extends Migration }); } - public function down() - { - Schema::table('settings', function (Blueprint $table) { - $table->dropColumn('episode_spoiler_protection'); - }); - } + public function down() {} } diff --git a/backend/database/migrations/2016_12_15_112332_change_original_title_field.php b/backend/database/migrations/2016_12_15_112332_change_original_title_field.php index 2a8cdd8..4a4b18f 100644 --- a/backend/database/migrations/2016_12_15_112332_change_original_title_field.php +++ b/backend/database/migrations/2016_12_15_112332_change_original_title_field.php @@ -13,10 +13,5 @@ class ChangeOriginalTitleField extends Migration }); } - public function down() - { - Schema::table('items', function (Blueprint $table) { - - }); - } + public function down() {} } diff --git a/backend/database/migrations/2016_12_17_144415_add_src_field_for_episodes.php b/backend/database/migrations/2016_12_17_144415_add_src_field_for_episodes.php index c49831a..546c7dd 100644 --- a/backend/database/migrations/2016_12_17_144415_add_src_field_for_episodes.php +++ b/backend/database/migrations/2016_12_17_144415_add_src_field_for_episodes.php @@ -13,10 +13,5 @@ class AddSrcFieldForEpisodes extends Migration }); } - public function down() - { - Schema::table('episodes', function (Blueprint $table) { - $table->dropColumn('src'); - }); - } + public function down() {} } diff --git a/backend/database/migrations/2016_12_18_195039_add_src_field_for_items.php b/backend/database/migrations/2016_12_18_195039_add_src_field_for_items.php index 199a178..496786c 100644 --- a/backend/database/migrations/2016_12_18_195039_add_src_field_for_items.php +++ b/backend/database/migrations/2016_12_18_195039_add_src_field_for_items.php @@ -13,10 +13,5 @@ class AddSrcFieldForItems extends Migration }); } - public function down() - { - Schema::table('items', function (Blueprint $table) { - $table->dropColumn('src'); - }); - } + public function down() {} } diff --git a/backend/database/migrations/2016_12_18_195742_create_alternative_titles_table.php b/backend/database/migrations/2016_12_18_195742_create_alternative_titles_table.php index d633d7d..6d1da76 100644 --- a/backend/database/migrations/2016_12_18_195742_create_alternative_titles_table.php +++ b/backend/database/migrations/2016_12_18_195742_create_alternative_titles_table.php @@ -16,8 +16,5 @@ class CreateAlternativeTitlesTable extends Migration }); } - public function down() - { - Schema::dropIfExists('alternative_titles'); - } + public function down() {} } diff --git a/backend/database/migrations/2017_01_05_111153_add_last_fetch_to_file_parser_field.php b/backend/database/migrations/2017_01_05_111153_add_last_fetch_to_file_parser_field.php index c3cb697..74f192a 100644 --- a/backend/database/migrations/2017_01_05_111153_add_last_fetch_to_file_parser_field.php +++ b/backend/database/migrations/2017_01_05_111153_add_last_fetch_to_file_parser_field.php @@ -13,10 +13,5 @@ }); } - public function down() - { - Schema::table('settings', function (Blueprint $table) { - $table->dropColumn('last_fetch_to_file_parser'); - }); - } + public function down() {} } diff --git a/backend/database/migrations/2017_01_25_163036_add_subtitles_field_for_episodes_and_items.php b/backend/database/migrations/2017_01_25_163036_add_subtitles_field_for_episodes_and_items.php index bdcc0f3..348a591 100644 --- a/backend/database/migrations/2017_01_25_163036_add_subtitles_field_for_episodes_and_items.php +++ b/backend/database/migrations/2017_01_25_163036_add_subtitles_field_for_episodes_and_items.php @@ -17,14 +17,5 @@ class AddSubtitlesFieldForEpisodesAndItems extends Migration }); } - public function down() - { - Schema::table('episodes', function (Blueprint $table) { - $table->dropColumn('subtitles'); - }); - - Schema::table('items', function (Blueprint $table) { - $table->dropColumn('subtitles'); - }); - } + public function down() {} } diff --git a/backend/database/migrations/2017_02_01_122243_change_tmdb_id_field.php b/backend/database/migrations/2017_02_01_122243_change_tmdb_id_field.php index 919b470..bd884d1 100644 --- a/backend/database/migrations/2017_02_01_122243_change_tmdb_id_field.php +++ b/backend/database/migrations/2017_02_01_122243_change_tmdb_id_field.php @@ -13,10 +13,5 @@ class ChangeTmdbIdField extends Migration }); } - public function down() - { - Schema::table('items', function (Blueprint $table) { - // - }); - } + public function down() {} } diff --git a/backend/database/migrations/2017_02_02_080109_add_fp_name_field_to_episodes_and_items.php b/backend/database/migrations/2017_02_02_080109_add_fp_name_field_to_episodes_and_items.php index 57fbb3b..7a8d7cd 100644 --- a/backend/database/migrations/2017_02_02_080109_add_fp_name_field_to_episodes_and_items.php +++ b/backend/database/migrations/2017_02_02_080109_add_fp_name_field_to_episodes_and_items.php @@ -17,14 +17,5 @@ class AddFPNameFieldToEpisodesAndItems extends Migration }); } - public function down() - { - Schema::table('items', function (Blueprint $table) { - $table->dropColumn('fp_name'); - }); - - Schema::table('episodes', function (Blueprint $table) { - $table->dropColumn('fp_name'); - }); - } + public function down() {} } diff --git a/backend/database/migrations/2017_02_22_083139_add_timestamps_to_episodes.php b/backend/database/migrations/2017_02_22_083139_add_timestamps_to_episodes.php index 877b52d..8c856cc 100644 --- a/backend/database/migrations/2017_02_22_083139_add_timestamps_to_episodes.php +++ b/backend/database/migrations/2017_02_22_083139_add_timestamps_to_episodes.php @@ -17,10 +17,5 @@ class AddTimestampsToEpisodes extends Migration }); } - public function down() - { - Schema::table('episodes', function (Blueprint $table) { - // - }); - } + public function down() {} } diff --git a/backend/database/migrations/2017_02_22_101320_add_timestamps_and_last_seen_at_to_items.php b/backend/database/migrations/2017_02_22_101320_add_timestamps_and_last_seen_at_to_items.php index 1cdc441..64acd76 100644 --- a/backend/database/migrations/2017_02_22_101320_add_timestamps_and_last_seen_at_to_items.php +++ b/backend/database/migrations/2017_02_22_101320_add_timestamps_and_last_seen_at_to_items.php @@ -40,10 +40,5 @@ }); } - public function down() - { - Schema::table('items', function (Blueprint $table) { - // - }); - } + public function down() {} } diff --git a/backend/database/migrations/2017_03_03_075703_add_subpage_fields_to_items_table.php b/backend/database/migrations/2017_03_03_075703_add_subpage_fields_to_items_table.php index 96df711..910c493 100644 --- a/backend/database/migrations/2017_03_03_075703_add_subpage_fields_to_items_table.php +++ b/backend/database/migrations/2017_03_03_075703_add_subpage_fields_to_items_table.php @@ -19,10 +19,5 @@ class AddSubpageFieldsToItemsTable extends Migration }); } - public function down() - { - Schema::table('items', function (Blueprint $table) { - // - }); - } + public function down() {} } diff --git a/backend/database/migrations/2017_12_29_222633_create_genre_item_table.php b/backend/database/migrations/2017_12_29_222633_create_genre_item_table.php index 198d989..869a603 100644 --- a/backend/database/migrations/2017_12_29_222633_create_genre_item_table.php +++ b/backend/database/migrations/2017_12_29_222633_create_genre_item_table.php @@ -6,11 +6,6 @@ use Illuminate\Database\Migrations\Migration; class CreateGenreItemTable extends Migration { - /** - * Run the migrations. - * - * @return void - */ public function up() { Schema::create('genre_item', function (Blueprint $table) { @@ -24,14 +19,6 @@ class CreateGenreItemTable extends Migration $table->dropColumn('genre'); }); } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('genre_item'); - } + + public function down() {} } diff --git a/backend/database/migrations/2018_03_16_235550_add_refreshed_at_field.php b/backend/database/migrations/2018_03_16_235550_add_refreshed_at_field.php new file mode 100644 index 0000000..020305b --- /dev/null +++ b/backend/database/migrations/2018_03_16_235550_add_refreshed_at_field.php @@ -0,0 +1,17 @@ +timestamp('refreshed_at')->nullable(); + }); + } + + public function down() {} +}