mirror of
https://github.com/devfake/flox.git
synced 2024-11-15 06:32:34 +01:00
update migrations
This commit is contained in:
parent
94cb286944
commit
3c9f8d2606
@ -21,8 +21,5 @@ class CreateItemsTable extends Migration
|
||||
});
|
||||
}
|
||||
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('items');
|
||||
}
|
||||
public function down() {}
|
||||
}
|
||||
|
@ -16,8 +16,5 @@ class CreateUsersTable extends Migration
|
||||
});
|
||||
}
|
||||
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('users');
|
||||
}
|
||||
public function down() {}
|
||||
}
|
||||
|
@ -21,8 +21,5 @@ class CreateSettingsTable extends Migration
|
||||
]);
|
||||
}
|
||||
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('settings');
|
||||
}
|
||||
public function down() {}
|
||||
}
|
||||
|
@ -20,8 +20,5 @@ class CreateEpisodesTable extends Migration
|
||||
});
|
||||
}
|
||||
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('episodes');
|
||||
}
|
||||
public function down() {}
|
||||
}
|
||||
|
@ -13,10 +13,5 @@ class AddCreatedAtField extends Migration
|
||||
});
|
||||
}
|
||||
|
||||
public function down()
|
||||
{
|
||||
Schema::table('episodes', function (Blueprint $table) {
|
||||
$table->dropColumn('created_at');
|
||||
});
|
||||
}
|
||||
public function down() {}
|
||||
}
|
||||
|
@ -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() {}
|
||||
}
|
||||
|
@ -13,10 +13,5 @@ class ChangeOriginalTitleField extends Migration
|
||||
});
|
||||
}
|
||||
|
||||
public function down()
|
||||
{
|
||||
Schema::table('items', function (Blueprint $table) {
|
||||
|
||||
});
|
||||
}
|
||||
public function down() {}
|
||||
}
|
||||
|
@ -13,10 +13,5 @@ class AddSrcFieldForEpisodes extends Migration
|
||||
});
|
||||
}
|
||||
|
||||
public function down()
|
||||
{
|
||||
Schema::table('episodes', function (Blueprint $table) {
|
||||
$table->dropColumn('src');
|
||||
});
|
||||
}
|
||||
public function down() {}
|
||||
}
|
||||
|
@ -13,10 +13,5 @@ class AddSrcFieldForItems extends Migration
|
||||
});
|
||||
}
|
||||
|
||||
public function down()
|
||||
{
|
||||
Schema::table('items', function (Blueprint $table) {
|
||||
$table->dropColumn('src');
|
||||
});
|
||||
}
|
||||
public function down() {}
|
||||
}
|
||||
|
@ -16,8 +16,5 @@ class CreateAlternativeTitlesTable extends Migration
|
||||
});
|
||||
}
|
||||
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('alternative_titles');
|
||||
}
|
||||
public function down() {}
|
||||
}
|
||||
|
@ -13,10 +13,5 @@
|
||||
});
|
||||
}
|
||||
|
||||
public function down()
|
||||
{
|
||||
Schema::table('settings', function (Blueprint $table) {
|
||||
$table->dropColumn('last_fetch_to_file_parser');
|
||||
});
|
||||
}
|
||||
public function down() {}
|
||||
}
|
||||
|
@ -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() {}
|
||||
}
|
||||
|
@ -13,10 +13,5 @@ class ChangeTmdbIdField extends Migration
|
||||
});
|
||||
}
|
||||
|
||||
public function down()
|
||||
{
|
||||
Schema::table('items', function (Blueprint $table) {
|
||||
//
|
||||
});
|
||||
}
|
||||
public function down() {}
|
||||
}
|
||||
|
@ -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() {}
|
||||
}
|
||||
|
@ -17,10 +17,5 @@ class AddTimestampsToEpisodes extends Migration
|
||||
});
|
||||
}
|
||||
|
||||
public function down()
|
||||
{
|
||||
Schema::table('episodes', function (Blueprint $table) {
|
||||
//
|
||||
});
|
||||
}
|
||||
public function down() {}
|
||||
}
|
||||
|
@ -40,10 +40,5 @@
|
||||
});
|
||||
}
|
||||
|
||||
public function down()
|
||||
{
|
||||
Schema::table('items', function (Blueprint $table) {
|
||||
//
|
||||
});
|
||||
}
|
||||
public function down() {}
|
||||
}
|
||||
|
@ -19,10 +19,5 @@ class AddSubpageFieldsToItemsTable extends Migration
|
||||
});
|
||||
}
|
||||
|
||||
public function down()
|
||||
{
|
||||
Schema::table('items', function (Blueprint $table) {
|
||||
//
|
||||
});
|
||||
}
|
||||
public function down() {}
|
||||
}
|
||||
|
@ -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) {
|
||||
@ -25,13 +20,5 @@ class CreateGenreItemTable extends Migration
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('genre_item');
|
||||
}
|
||||
public function down() {}
|
||||
}
|
||||
|
@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class AddRefreshedAtField extends Migration
|
||||
{
|
||||
public function up()
|
||||
{
|
||||
Schema::table('items', function (Blueprint $table) {
|
||||
$table->timestamp('refreshed_at')->nullable();
|
||||
});
|
||||
}
|
||||
|
||||
public function down() {}
|
||||
}
|
Loading…
Reference in New Issue
Block a user