Reject unknown DB versions
All checks were successful
Alpine 3.21 Success

This commit is contained in:
Přemysl Eric Janouch 2025-09-06 09:12:27 +02:00
parent d3a046d85d
commit 6868bde5e6
Signed by: p
GPG Key ID: A0420B94F92B9493

View File

@ -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(