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:
parent
0113d55301
commit
ee88d63fc2
@ -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');
|
||||
|
Loading…
Reference in New Issue
Block a user