Do not attempt to migrate to CA schema when read-only.

This commit is contained in:
Ben Radford 2023-05-16 13:56:29 +01:00
parent 50bbdc65c8
commit c22936ca6a
No known key found for this signature in database
GPG key ID: 9DF5D4640AB888D5

View file

@ -348,7 +348,7 @@ LocalStore::LocalStore(const Params & params)
else openDB(*state, false); else openDB(*state, false);
if (experimentalFeatureSettings.isEnabled(Xp::CaDerivations)) { if (!readOnly && experimentalFeatureSettings.isEnabled(Xp::CaDerivations)) {
migrateCASchema(state->db, dbDir + "/ca-schema", globalLock); migrateCASchema(state->db, dbDir + "/ca-schema", globalLock);
} }