fix (psql): psql storage issues

This commit is contained in:
MickaelK
2025-08-29 22:49:42 +10:00
parent 87ec71b3cb
commit cd45d2baad
6 changed files with 53 additions and 14 deletions

View File

@ -115,11 +115,11 @@ func createFormElement(val any, column Column) FormElement {
f := FormElement{
Type: "text",
}
switch val.(type) {
case bool:
f.Type = "boolean"
case time.Time:
switch column.Type {
case "timestamptz":
f.Type = "datetime"
case "bool":
f.Type = "boolean"
}
f.Value = convertFromDB(val)