From 832a7683fbba2e7c0c7d3736b4a311ef5c76bb4c Mon Sep 17 00:00:00 2001 From: adonis Date: Wed, 19 Aug 2026 14:16:46 +0330 Subject: [PATCH] fix(migration): parse error in show_in_list COMMENT SQL string Use double-quoted PHP string for Persian COMMENT; '' is SQL escaping, not valid inside PHP single quotes. Co-authored-by: Cursor --- .../2026_08_19_000001_add_show_in_list_to_products_table.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database/migrations/2026_08_19_000001_add_show_in_list_to_products_table.php b/database/migrations/2026_08_19_000001_add_show_in_list_to_products_table.php index dec2adc..8ce59ac 100644 --- a/database/migrations/2026_08_19_000001_add_show_in_list_to_products_table.php +++ b/database/migrations/2026_08_19_000001_add_show_in_list_to_products_table.php @@ -27,7 +27,7 @@ return new class extends Migration }); } else { DB::statement( - 'ALTER TABLE `products` MODIFY COLUMN `show_in_list` TINYINT(1) NOT NULL DEFAULT 1 COMMENT ''نمایش در لیست محصولات مشتری''' + "ALTER TABLE `products` MODIFY COLUMN `show_in_list` TINYINT(1) NOT NULL DEFAULT 1 COMMENT 'نمایش در لیست محصولات مشتری'" ); } }