From 568328596af7accc2821613e85e3504768f65f56 Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Fri, 10 Apr 2020 14:02:16 -0700 Subject: [PATCH] Cleanup migration --- .../2020_04_04_131016_add_table_server_transfers.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/database/migrations/2020_04_04_131016_add_table_server_transfers.php b/database/migrations/2020_04_04_131016_add_table_server_transfers.php index 85c73f46e..ae0a57ca9 100644 --- a/database/migrations/2020_04_04_131016_add_table_server_transfers.php +++ b/database/migrations/2020_04_04_131016_add_table_server_transfers.php @@ -13,8 +13,6 @@ class AddTableServerTransfers extends Migration */ public function up() { - Schema::dropIfExists('server_transfers'); - Schema::create('server_transfers', function (Blueprint $table) { $table->increments('id'); $table->integer('server_id')->unsigned(); @@ -26,10 +24,8 @@ class AddTableServerTransfers extends Migration $table->string('old_additional_allocations')->nullable(); $table->string('new_additional_allocations')->nullable(); $table->timestamps(); - }); - Schema::table('server_transfers', function (Blueprint $table) { - $table->foreign('server_id')->references('id')->on('servers'); + $table->foreign('server_id')->references('id')->on('servers')->onDelete('cascade'); }); }