mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 21:22:58 +01:00
Merge pull request #6969 from turbo124/v5-develop
Minor fixes for migration
This commit is contained in:
commit
bf77e805b7
@ -13,9 +13,25 @@ class Onboarding extends Migration
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::table('accounts', function (Blueprint $table) {
|
||||
$table->boolean('is_onboarding')->default(false);
|
||||
$table->mediumText('onboarding')->nullable();
|
||||
});
|
||||
|
||||
if (!Schema::hasColumn('accounts', 'is_onboarding'))
|
||||
{
|
||||
|
||||
Schema::table('accounts', function (Blueprint $table) {
|
||||
$table->boolean('is_onboarding')->default(false);
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
|
||||
if (!Schema::hasColumn('accounts', 'onboarding'))
|
||||
{
|
||||
|
||||
Schema::table('accounts', function (Blueprint $table) {
|
||||
$table->mediumText('onboarding')->nullable();
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user