Remove now-extraneous latitude/longitude generated columns
Now that we can pull out the geometry directly into a go object we don't need these and they complicate our insertions
This commit is contained in:
parent
34a136eba5
commit
7a361a330d
40 changed files with 426 additions and 464 deletions
|
|
@ -17,7 +17,8 @@ type ReportUpdater = db.Updater[table.ReportTable, model.Report]
|
|||
|
||||
func ReportInsert(ctx context.Context, txn db.Ex, m model.Report) (model.Report, error) {
|
||||
statement := table.Report.INSERT(table.Report.AllColumns).
|
||||
MODEL(m)
|
||||
MODEL(m).
|
||||
RETURNING(table.Report.AllColumns)
|
||||
return db.ExecuteOneTx[model.Report](ctx, txn, statement)
|
||||
}
|
||||
func ReportFromID(ctx context.Context, report_id int64) (model.Report, error) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue