summaryrefslogtreecommitdiffstats
path: root/common/storage/entitystore.h
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2018-03-26 13:33:17 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2018-03-26 13:33:17 +0200
commit29f80e6e4d698217933b7bd2df90c08162416d3f (patch)
tree324c496b016b694a3ee963e7ff29d21dcc36426c /common/storage/entitystore.h
parenta9c40f85cf9487ab684c35d564a603e28ae63066 (diff)
downloadsink-29f80e6e4d698217933b7bd2df90c08162416d3f.tar.gz
sink-29f80e6e4d698217933b7bd2df90c08162416d3f.zip
Don't just set the db version, only when we create the db first.
Diffstat (limited to 'common/storage/entitystore.h')
-rw-r--r--common/storage/entitystore.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/storage/entitystore.h b/common/storage/entitystore.h
index 3eb0b7b..985e7f9 100644
--- a/common/storage/entitystore.h
+++ b/common/storage/entitystore.h
@@ -39,6 +39,8 @@ public:
39 EntityStore(const ResourceContext &resourceContext, const Sink::Log::Context &); 39 EntityStore(const ResourceContext &resourceContext, const Sink::Log::Context &);
40 ~EntityStore() = default; 40 ~EntityStore() = default;
41 41
42 void createIfMissing();
43
42 //Only the pipeline may call the following functions outside of tests 44 //Only the pipeline may call the following functions outside of tests
43 bool add(const QByteArray &type, ApplicationDomain::ApplicationDomainType newEntity, bool replayToSource); 45 bool add(const QByteArray &type, ApplicationDomain::ApplicationDomainType newEntity, bool replayToSource);
44 bool modify(const QByteArray &type, const ApplicationDomain::ApplicationDomainType &diff, const QByteArrayList &deletions, bool replayToSource); 46 bool modify(const QByteArray &type, const ApplicationDomain::ApplicationDomainType &diff, const QByteArrayList &deletions, bool replayToSource);