Skip to content

Commit

Permalink
Merge pull request #141 from Laravel-Backpack/tabacitu-fix-error
Browse files Browse the repository at this point in the history
Fix error when trying to create a page without extras
  • Loading branch information
pxpm authored Sep 27, 2024
2 parents 9a6868b + ee0667e commit 0cdcbab
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class ChangeExtrasToLongtext extends Migration
public function up()
{
Schema::table('pages', function (Blueprint $table) {
$table->longText('extras')->change();
$table->longText('extras')->nullable()->change();
});
}

Expand All @@ -26,7 +26,7 @@ public function up()
public function down()
{
Schema::table('pages', function (Blueprint $table) {
$table->text('extras')->change();
$table->text('extras')->nullable()->change();
});
}
}

0 comments on commit 0cdcbab

Please sign in to comment.