aboutsummaryrefslogtreecommitdiff
path: root/acid.go
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2025-09-06 09:12:27 +0200
committerPřemysl Eric Janouch <p@janouch.name>2025-09-06 09:12:27 +0200
commit6868bde5e6f636e43846aead6cc4793ed0c476dc (patch)
tree16c66fc020c14de11883eea463526bdd801a8b3c /acid.go
parentd3a046d85dc91684951030741f55490735c624f4 (diff)
downloadacid-6868bde5e6f636e43846aead6cc4793ed0c476dc.tar.gz
acid-6868bde5e6f636e43846aead6cc4793ed0c476dc.tar.xz
acid-6868bde5e6f636e43846aead6cc4793ed0c476dc.zip
Reject unknown DB versionsHEADorigin/mastermaster
Diffstat (limited to 'acid.go')
-rw-r--r--acid.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/acid.go b/acid.go
index 47db6aa..16322a5 100644
--- a/acid.go
+++ b/acid.go
@@ -1754,6 +1754,8 @@ func dbOpen(path string) error {
fallthrough
case 2:
// The next migration goes here, remember to increment the number below.
+ default:
+ return fmt.Errorf("unsupported database version: %d", version)
}
if _, err = tx.Exec(