mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-08-11 15:34:21 -04: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->date('plan_expires')->nullable();
|
||||||
|
|
||||||
$table->unsignedInteger('payment_id')->nullable();
|
$table->unsignedInteger('payment_id')->nullable();
|
||||||
$table->foreign('payment_id')->references('id')->on('payments');
|
|
||||||
|
|
||||||
$table->date('trial_started')->nullable();
|
$table->date('trial_started')->nullable();
|
||||||
$table->enum('trial_plan', array('pro', 'enterprise'))->nullable();
|
$table->enum('trial_plan', array('pro', 'enterprise'))->nullable();
|
||||||
@ -43,6 +43,11 @@ class EnterprisePlan extends Migration
|
|||||||
$table->timestamps();
|
$table->timestamps();
|
||||||
$table->softDeletes();
|
$table->softDeletes();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Schema::table('companies', function($table)
|
||||||
|
{
|
||||||
|
$table->foreign('payment_id')->references('id')->on('payments');
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!Schema::hasColumn('accounts', 'company_id')) {
|
if (!Schema::hasColumn('accounts', 'company_id')) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user