Fix SQL statement

FossilOrigin-Name: d1ac88698d2cc79cb094aeec5f543a8b34f00c3b7de57b819891baba3bafd669
This commit is contained in:
nekobit 2022-12-28 22:10:06 +00:00
parent 4a21c55fe8
commit 2fd5a283c5

View file

@ -418,7 +418,7 @@ CREATE TABLE IF NOT EXISTS config (
instance_domain TEXT NOT NULL, /* Full URL */
instance_description TEXT, /* Full URL */
instance_logo INTEGER, /* media */
config BLOB,
config BLOB
)
)sql",
@ -435,6 +435,7 @@ CREATE TABLE IF NOT EXISTS config (
{
if (sqlite3_exec(db, sql, nullptr, nullptr, &err))
{
Logger::instance().log("Statement: "s + sql, Logger::Level::ERROR);
Logger::instance().log(err, Logger::Level::ERROR);
throw std::runtime_error(err);
}