1
0
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:
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()
{
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();
});
}
}
}