Skip to content

Commit

Permalink
fix: casting to json at postgresql database
Browse files Browse the repository at this point in the history
Signed-off-by: Vitor Mattos <vitor@php.rio>
  • Loading branch information
vitormattos committed Apr 11, 2024
1 parent 5644e2e commit 6bb33df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Migration/Version8000Date20240405142042.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public function changeSchema(IOutput $output, Closure $schemaClosure, array $opt
if ($schema->getDatabasePlatform() instanceof PostgreSQLPlatform) {
$newOptions = [
'Type' => new PostgreSQLJsonType(),
'comment' => 'USING to_jsonb(metadata)',
'comment' => 'USING metadata::json',
];
} else {
$newOptions = [
Expand Down

0 comments on commit 6bb33df

Please sign in to comment.