We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bffa25c commit 412d1c2Copy full SHA for 412d1c2
1 file changed
lua/themepark.lua
@@ -346,21 +346,25 @@ function themepark:add_table(data)
346
end
347
348
if data.geom then
349
+ local not_null = true
350
if type(data.geom) == 'string' then
351
data.geom_type = data.geom
352
data.geom_column = 'geom'
353
data.geom = nil
354
elseif type(data.geom) == 'table' then
355
data.geom_type = data.geom.type
356
data.geom_column = data.geom.column
357
+ if data.geom.not_null == false then
358
+ not_null = false
359
+ end
360
361
362
table.insert(data.columns, 1, {
363
column = data.geom_column,
364
type = data.geom_type,
365
projection = self.options.srid,
366
expire = data.expire,
- not_null = true
367
+ not_null = not_null
368
})
369
table.insert(data.indexes, {
370
0 commit comments