Skip to content

Commit

Permalink
Merge pull request #164 from kitloong/feature/grammar
Browse files Browse the repository at this point in the history
Use `DB::getQueryGrammar`
  • Loading branch information
kitloong authored Mar 6, 2023
2 parents f3a40c7 + 6a456dc commit 4c04e38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Migration/Blueprint/Support/Stringable.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function convertFromAnyTypeToString($value): string
default:
// Wrap with DB::raw();
if ($value instanceof Expression) {
return 'DB::raw("' . $this->escapeDoubleQuote(DB::getSchemaGrammar()->getValue($value)) . '")';
return 'DB::raw("' . $this->escapeDoubleQuote(DB::getQueryGrammar()->getValue($value)) . '")';
}

return (string) $value;
Expand Down

0 comments on commit 4c04e38

Please sign in to comment.