1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

Minor fixes for migration

This commit is contained in:
David Bomba 2021-11-14 18:01:05 +11:00
parent aa35911195
commit 48b5f39b14

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();
});
}
}
}