Skip to content

Commit

Permalink
Address PR comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
callumbirks committed Oct 15, 2024
1 parent 8a838f3 commit 41bd529
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions LiteCore/Storage/SQLiteKeyStore.cc
Original file line number Diff line number Diff line change
Expand Up @@ -525,11 +525,11 @@ namespace litecore {
db().withFileLock([=]() {
if ( mayHaveExpiration() ) return;
db()._logVerbose("Adding the `expiration` column & index to kv_%s", name().c_str());
db().execWithLock(subst("ALTER TABLE kv_@ ADD COLUMN expiration INTEGER; "
"CREATE INDEX \"kv_@_expiration\" ON kv_@ (expiration) WHERE expiration not null"));
db().exec(subst("ALTER TABLE kv_@ ADD COLUMN expiration INTEGER; "
"CREATE INDEX \"kv_@_expiration\" ON kv_@ (expiration) WHERE expiration not null"));
_uncommittedExpirationColumn = true;
});
_hasExpirationColumn = true;
_uncommittedExpirationColumn = true;
_hasExpirationColumn = true;
}

bool SQLiteKeyStore::setExpiration(slice key, expiration_t expTime) {
Expand Down

0 comments on commit 41bd529

Please sign in to comment.