From e31ca31262ef0977bb160eb9f8a8d3a47fb2ad2f Mon Sep 17 00:00:00 2001 From: Joakim Bygdell Date: Thu, 9 Feb 2023 10:03:27 +0100 Subject: [PATCH] Require V4 of the database --- main.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/main.go b/main.go index e32d383..23d4541 100644 --- a/main.go +++ b/main.go @@ -52,6 +52,11 @@ func main() { sigc <- syscall.SIGINT panic(err) } + if sdaDB.Version < 4 { + log.Error("database schema v4 is required") + sigc <- syscall.SIGINT + panic(err) + } log.Debugf("Connected to sda-db (v%v)", sdaDB.Version)