db_init: always call the function callback to make upgrades possible

master
nixo 2020-10-24 15:59:45 +02:00
parent 0ed8bef3a4
commit 0d37e75d17
1 changed files with 3 additions and 4 deletions

View File

@ -6,9 +6,8 @@ function DataBase(f, path::String)
db = if isdir(path)
DataBase(path, verbose = true);
else
let db = DataBase(path, verbose = true);
f(db)
db
end
DataBase(path, verbose = true);
end
f(db)
db
end