Minor fixes for migration
This commit is contained in:
parent
aa35911195
commit
48b5f39b14
1 changed files with 20 additions and 4 deletions
|
|
@ -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…
Add table
Reference in a new issue