From 5a5c31e8b7471b7196c08254b386426059018780 Mon Sep 17 00:00:00 2001 From: lsces Date: Tue, 24 Feb 2026 16:54:17 +0000 Subject: Magic base to removing double quote wrapping. wrapValue is the main source of this wrap and other areas simply fall through to it. Also removed an earlier fix for a missing set of double quotes on Enum --- src/Schema/Grammars/FirebirdGrammar.php | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/Schema/Grammars/FirebirdGrammar.php b/src/Schema/Grammars/FirebirdGrammar.php index e76aff7..cecef1a 100755 --- a/src/Schema/Grammars/FirebirdGrammar.php +++ b/src/Schema/Grammars/FirebirdGrammar.php @@ -499,7 +499,7 @@ class FirebirdGrammar extends Grammar $column->default = null; } - return "VARCHAR(255) $default CHECK (\"{$column->name}\" IN (".implode(', ', $allowed).'))'; + return "VARCHAR(255) $default CHECK ({$column->name} IN (".implode(', ', $allowed).'))'; } /** @@ -651,4 +651,15 @@ class FirebirdGrammar extends Grammar { return 'VARCHAR(17)'; } + + /** + * Wrap a single string in keyword identifiers. + * + * @param string $value + * @return string + */ + protected function wrapValue($value) + { + return $value; + } } -- cgit v1.3