Fixed regression that prevent new installs to work. fixes #385

This commit is contained in:
emeric
2023-12-01 08:53:50 +01:00
parent 6b5e53de1d
commit 4bf0cdf580
2 changed files with 16 additions and 0 deletions
+10
View File
@@ -30,6 +30,16 @@
namespace Database
{
void ScanSettings::init(Session& session)
{
session.checkWriteTransaction();
if (pointer settings{ get(session) })
return;
session.getDboSession().add(std::make_unique<ScanSettings>());
}
ScanSettings::pointer ScanSettings::get(Session& session)
{
session.checkReadTransaction();