From ee88d63fc2675e790beeccc22deb11fc0a0bdac5 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Tue, 29 Nov 2016 21:06:16 +0200 Subject: [PATCH] Fix for self host database migrations --- database/migrations/2016_08_10_184027_add_support_for_bots.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/database/migrations/2016_08_10_184027_add_support_for_bots.php b/database/migrations/2016_08_10_184027_add_support_for_bots.php index 40704b4564..3a28f29a13 100644 --- a/database/migrations/2016_08_10_184027_add_support_for_bots.php +++ b/database/migrations/2016_08_10_184027_add_support_for_bots.php @@ -22,7 +22,10 @@ class AddSupportForBots extends Migration $table->string('code')->nullable(); $table->string('bot_user_id')->unique(); $table->timestamp('created_at')->useCurrent(); + }); + Schema::table('security_codes', function($table) + { $table->foreign('user_id')->references('id')->on('users')->onDelete('cascade'); $table->foreign('contact_id')->references('id')->on('contacts')->onDelete('cascade'); $table->foreign('account_id')->references('id')->on('accounts')->onDelete('cascade');