Skip to content

Commit a3e9d14

Browse files
committed
Make migrations compatible with Mysql 8.
1 parent 2eed2ec commit a3e9d14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

database/migrations/create_filament_flexible_content_block_pages_table.php.stub

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ return new class extends Migration
5050

5151
//Content blocks:
5252
$table->json('content_blocks')
53-
->default('[]'); //Default only works on JSON on MySQL 8 or newer
53+
->nullable();
5454

5555
//Slug:
5656
$table->json('slug')

0 commit comments

Comments
 (0)