Fix for self host database migrations
This commit is contained in:
parent
d9b611502e
commit
30daf0c29f
1 changed files with 6 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue