Add placeholder migration 36

This commit is contained in:
Fedor Indutny 2021-07-12 17:32:17 -07:00 committed by GitHub
parent ad217c808d
commit 5da5ffe504
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 0 deletions

View File

@ -1937,6 +1937,16 @@ function updateToSchemaVersion35(currentVersion: number, db: Database) {
console.log('updateToSchemaVersion35: success!');
}
// Reverted
function updateToSchemaVersion36(currentVersion: number, db: Database) {
if (currentVersion >= 36) {
return;
}
db.pragma('user_version = 36');
console.log('updateToSchemaVersion36: success!');
}
const SCHEMA_VERSIONS = [
updateToSchemaVersion1,
updateToSchemaVersion2,
@ -1973,6 +1983,7 @@ const SCHEMA_VERSIONS = [
updateToSchemaVersion33,
updateToSchemaVersion34,
updateToSchemaVersion35,
updateToSchemaVersion36,
];
function updateSchema(db: Database): void {