Skip to content

Commit 537abda

Browse files
committed
Insert geometry column in front of other columns
The first geometry column is somewhat special, because the automatic index and clustering will be done on that column. So it is important that this column will end up as the first geometry column (in case there are others later on).
1 parent 5d7dcc3 commit 537abda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/themepark.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ function themepark:add_table(data)
351351
data.geom_column = data.geom.column
352352
data.geom = nil
353353
end
354-
table.insert(data.columns, {
354+
table.insert(data.columns, 1, {
355355
column = data.geom_column,
356356
type = data.geom_type,
357357
projection = self.options.srid,

0 commit comments

Comments
 (0)