1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-11 05:32:39 +01:00

Fix for self host database migrations

This commit is contained in:
Hillel Coren 2016-11-29 21:06:16 +02:00
parent 0113d55301
commit ee88d63fc2

View File

@ -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');