mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-13 06:32:40 +01:00
Fix for self host database migrations
This commit is contained in:
parent
d9b611502e
commit
30daf0c29f
@ -32,7 +32,7 @@ class EnterprisePlan extends Migration
|
||||
$table->date('plan_expires')->nullable();
|
||||
|
||||
$table->unsignedInteger('payment_id')->nullable();
|
||||
$table->foreign('payment_id')->references('id')->on('payments');
|
||||
|
||||
|
||||
$table->date('trial_started')->nullable();
|
||||
$table->enum('trial_plan', array('pro', 'enterprise'))->nullable();
|
||||
@ -43,6 +43,11 @@ class EnterprisePlan extends Migration
|
||||
$table->timestamps();
|
||||
$table->softDeletes();
|
||||
});
|
||||
|
||||
Schema::table('companies', function($table)
|
||||
{
|
||||
$table->foreign('payment_id')->references('id')->on('payments');
|
||||
});
|
||||
}
|
||||
|
||||
if (!Schema::hasColumn('accounts', 'company_id')) {
|
||||
|
Loading…
Reference in New Issue
Block a user