mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-08 17:14:31 -04:00
Merge pull request #6931 from beganovich/jira-754
Provide columns for onboarding
This commit is contained in:
commit
639d974c71
@ -67,6 +67,10 @@ class Account extends BaseModel
|
|||||||
// 'plan_expires'
|
// 'plan_expires'
|
||||||
];
|
];
|
||||||
|
|
||||||
|
protected $casts = [
|
||||||
|
'onboarding' => 'object'
|
||||||
|
];
|
||||||
|
|
||||||
const PLAN_FREE = 'free';
|
const PLAN_FREE = 'free';
|
||||||
const PLAN_PRO = 'pro';
|
const PLAN_PRO = 'pro';
|
||||||
const PLAN_ENTERPRISE = 'enterprise';
|
const PLAN_ENTERPRISE = 'enterprise';
|
||||||
|
21
database/migrations/2021_11_03_131308_onboarding.php
Normal file
21
database/migrations/2021_11_03_131308_onboarding.php
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
|
||||||
|
class Onboarding extends Migration
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Run the migrations.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function up()
|
||||||
|
{
|
||||||
|
Schema::table('accounts', function (Blueprint $table) {
|
||||||
|
$table->boolean('is_onboarding')->default(false);
|
||||||
|
$table->mediumText('onboarding')->nullable();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user