From 7d76e2d74dc93db4c1682566fee120117a712f2f Mon Sep 17 00:00:00 2001 From: Peter Deltchev Date: Thu, 24 Sep 2015 09:55:34 -0700 Subject: [PATCH] Fixed a broken migration and cleaned up some leftover files from Laravel 4.. --- .../2015_09_04_160648_make_email_nullable.php | 27 ----------- .../2015_09_05_113647_add_new_indices.php | 45 ------------------- .../2015_09_05_143300_create_mlpma_table.php | 38 ---------------- .../2015_09_05_113647_add_new_indices.php | 2 +- 4 files changed, 1 insertion(+), 111 deletions(-) delete mode 100644 app/database/migrations/2015_09_04_160648_make_email_nullable.php delete mode 100644 app/database/migrations/2015_09_05_113647_add_new_indices.php delete mode 100644 app/database/migrations/2015_09_05_143300_create_mlpma_table.php diff --git a/app/database/migrations/2015_09_04_160648_make_email_nullable.php b/app/database/migrations/2015_09_04_160648_make_email_nullable.php deleted file mode 100644 index 39d32d40..00000000 --- a/app/database/migrations/2015_09_04_160648_make_email_nullable.php +++ /dev/null @@ -1,27 +0,0 @@ -index('hash'); - }); - - Schema::table('track_files', function ($table) { - $table->index('is_master'); - $table->index('format'); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - DB::statement('ALTER TABLE `show_songs` DROP INDEX show_songs_title_fulltext'); - - Schema::table('images', function ($table) { - $table->dropIndex('images_hash_index'); - }); - - Schema::table('track_files', function ($table) { - $table->dropIndex('track_files_is_master_index'); - $table->dropIndex('track_files_format_index'); - }); - } - -} diff --git a/app/database/migrations/2015_09_05_143300_create_mlpma_table.php b/app/database/migrations/2015_09_05_143300_create_mlpma_table.php deleted file mode 100644 index be114960..00000000 --- a/app/database/migrations/2015_09_05_143300_create_mlpma_table.php +++ /dev/null @@ -1,38 +0,0 @@ -increments('id'); - $table->integer('track_id')->unsigned()->index(); - $table->string('path')->index(); - $table->string('filename')->index(); - $table->string('extension')->index(); - $table->dateTime('imported_at'); - $table->longText('parsed_tags'); - $table->longText('raw_tags'); - - $table->foreign('track_id')->references('id')->on('tracks'); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::drop('mlpma_tracks'); - } - -} diff --git a/database/migrations/2015_09_05_113647_add_new_indices.php b/database/migrations/2015_09_05_113647_add_new_indices.php index cff25fd3..8f373876 100644 --- a/database/migrations/2015_09_05_113647_add_new_indices.php +++ b/database/migrations/2015_09_05_113647_add_new_indices.php @@ -3,7 +3,7 @@ use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; -class AddNewIndicies extends Migration +class AddNewIndices extends Migration { /** * Run the migrations.