Merge pull request #6969 from turbo124/v5-develop

Minor fixes for migration
This commit is contained in:
David Bomba 2021-11-14 18:01:22 +11:00 committed by GitHub
commit bf77e805b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,9 +13,25 @@ class Onboarding extends Migration
*/ */
public function up() public function up()
{ {
if (!Schema::hasColumn('accounts', 'is_onboarding'))
{
Schema::table('accounts', function (Blueprint $table) { Schema::table('accounts', function (Blueprint $table) {
$table->boolean('is_onboarding')->default(false); $table->boolean('is_onboarding')->default(false);
});
}
if (!Schema::hasColumn('accounts', 'onboarding'))
{
Schema::table('accounts', function (Blueprint $table) {
$table->mediumText('onboarding')->nullable(); $table->mediumText('onboarding')->nullable();
}); });
}
} }
} }