From 0b7e7b7fe2b71138efe654f4b7cb97b954ffd709 Mon Sep 17 00:00:00 2001 From: Mark Chadwick Date: Sat, 23 Nov 2024 18:22:38 +1300 Subject: [PATCH] update --- cmd/deltadb/delta.svg | 52 ++++++++++++++++++++++++++++++------------- meta/sqlite/db.go | 7 ++++++ 2 files changed, 44 insertions(+), 15 deletions(-) diff --git a/cmd/deltadb/delta.svg b/cmd/deltadb/delta.svg index d6269039f..9be314ca8 100644 --- a/cmd/deltadb/delta.svg +++ b/cmd/deltadb/delta.svg @@ -4,11 +4,11 @@ - - + + structs - + antenna @@ -471,7 +471,7 @@ - + view view @@ -809,7 +809,7 @@ - + station station @@ -1130,7 +1130,7 @@ - + site site @@ -2566,7 +2566,7 @@ - + sample sample @@ -3015,6 +3015,28 @@ + + +response + +response + +🔑 + +response_id + + + +* + +  + +response + + + +* + sample:e->datum:w @@ -3022,7 +3044,7 @@ - + sensor sensor @@ -3150,7 +3172,7 @@ - + session session @@ -3276,7 +3298,7 @@ - + station_network station_network @@ -3318,7 +3340,7 @@ - + stream stream @@ -3410,7 +3432,7 @@ - + telemetry telemetry @@ -3462,7 +3484,7 @@ - + timing timing @@ -3520,7 +3542,7 @@ - + visibility visibility diff --git a/meta/sqlite/db.go b/meta/sqlite/db.go index 0623b32fe..f2266d7db 100644 --- a/meta/sqlite/db.go +++ b/meta/sqlite/db.go @@ -77,6 +77,13 @@ func (d DB) Init(ctx context.Context, list []meta.TableList) error { for _, l := range list { switch l.Table.Name() { + case "Response": + if err := d.exec(ctx, tx, response.Create); err != nil { + return err + } + if err := d.prepare(ctx, tx, response.Insert(), response.Columns(l)...); err != nil { + return err + } case "Placename": if err := d.exec(ctx, tx, placename.Create); err != nil { return err