Update db user_version within transaction

This commit is contained in:
Fedor Indutny 2024-08-13 10:52:21 -07:00 committed by GitHub
parent 36db532f31
commit 3a631a587f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 32 additions and 30 deletions

View file

@ -24,9 +24,9 @@ export function updateToSchemaVersion1090(
CREATE INDEX storyReads_storyId
ON storyReads (storyId);
`);
})();
db.pragma('user_version = 1090');
db.pragma('user_version = 1090');
})();
logger.info('updateToSchemaVersion1090: success!');
}