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 <cursoragent@cursor.com>
This commit is contained in:
@@ -27,7 +27,7 @@ return new class extends Migration
|
|||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
DB::statement(
|
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 'نمایش در لیست محصولات مشتری'"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user