1
0
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:
Hillel Coren 2016-11-29 21:05:42 +02:00
parent d9b611502e
commit 30daf0c29f

View File

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