From f114c6b1684695f94224619e6991f81f93a70f5c Mon Sep 17 00:00:00 2001 From: lkddi Date: Sun, 1 Mar 2026 14:07:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=EF=BC=9A=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E7=8B=AC=E7=AB=8B=E8=BF=81=E7=A7=BB=E5=B0=86=20reserved=5Funti?= =?UTF-8?q?l=20=E6=94=B9=E4=B8=BA=20nullable?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 上次 add_type_reason 迁移已在生产跑过(无 change), 导致 permanent 类型插入 NULL 时报 1048 错误。 新建专用迁移用 DB::statement ALTER TABLE 直接生效, 绕过 doctrine/dbal ->change() 的潜在兼容问题。 --- ...d_until_nullable_in_username_blacklist.php | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 database/migrations/2026_03_01_140713_make_reserved_until_nullable_in_username_blacklist.php diff --git a/database/migrations/2026_03_01_140713_make_reserved_until_nullable_in_username_blacklist.php b/database/migrations/2026_03_01_140713_make_reserved_until_nullable_in_username_blacklist.php new file mode 100644 index 0000000..553924a --- /dev/null +++ b/database/migrations/2026_03_01_140713_make_reserved_until_nullable_in_username_blacklist.php @@ -0,0 +1,36 @@ +