From 2ab3c25e96068dfb1a700a11c1ced25e31729143 Mon Sep 17 00:00:00 2001 From: Juan Pablo Vial Date: Wed, 18 Dec 2024 20:12:01 -0300 Subject: [PATCH] Fix: nulls --- app/generate-migrations.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/generate-migrations.php b/app/generate-migrations.php index bf4f91e..3aa8c99 100644 --- a/app/generate-migrations.php +++ b/app/generate-migrations.php @@ -499,6 +499,9 @@ use Phinx\Seed\AbstractSeed; } $value = "'{$value}'"; } + if ($value === null) { + $value = 'null'; + } $output []= "\t\t\t\t'{$key}' => {$value},"; } $output []= "\t\t\t],";