Skip to content

Commit 731b3a9

Browse files
authored
Merge pull request #120 from utopia-php/dat-828
added parser for the spatial types
2 parents f5c1d2c + 974d352 commit 731b3a9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Migration/Sources/CSV.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,9 @@ private function exportRows(int $batchSize): void
298298
filter: FILTER_VALIDATE_BOOLEAN,
299299
options: FILTER_NULL_ON_FAILURE
300300
),
301+
Column::TYPE_POINT,
302+
Column::TYPE_LINE,
303+
Column::TYPE_POLYGON => \is_string($parsedValue) ? json_decode($parsedValue) : null,
301304
default => $parsedValue,
302305
},
303306
};

0 commit comments

Comments
 (0)