feat(server): initial implementation of migrations

This commit is contained in:
Jef Roosens 2022-05-24 22:48:17 +02:00
parent cdb88e1620
commit 0d5704ba15
Signed by untrusted user: Jef Roosens
GPG key ID: B75D4F293C7052DB
5 changed files with 81 additions and 4 deletions

View file

@ -68,7 +68,9 @@ pub fn server(conf Config) ? {
}
db_file := os.join_path_single(conf.data_dir, server.db_file_name)
db := db.init(db_file) or { util.exit_with_message(1, 'Failed to initialize database.') }
db := db.init(db_file) or {
util.exit_with_message(1, 'Failed to initialize database: $err.msg()')
}
web.run(&App{
logger: logger