diff options
| -rwxr-xr-x | src/Schema/Grammars/FirebirdGrammar.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/Schema/Grammars/FirebirdGrammar.php b/src/Schema/Grammars/FirebirdGrammar.php index a684fb1..ebeefb0 100755 --- a/src/Schema/Grammars/FirebirdGrammar.php +++ b/src/Schema/Grammars/FirebirdGrammar.php @@ -492,8 +492,13 @@ class FirebirdGrammar extends Grammar $allowed = array_map(function ($a) { return "'".$a."'"; }, $column->allowed); + $default = ''; + if (! is_null($column->default)) { + $default .= ' DEFAULT '.$this->getDefaultValue($column->default); + $column->default = null; + } - return "VARCHAR(255) CHECK (\"{$column->name}\" IN (".implode(', ', $allowed).'))'; + return "VARCHAR(255) $default CHECK (\"{$column->name}\" IN (".implode(', ', $allowed).'))'; } /** |
