Skip to content

Commit

Permalink
Add placeholder migration 36
Browse files Browse the repository at this point in the history
  • Loading branch information
indutny-signal committed Jul 13, 2021
1 parent ad217c8 commit 5da5ffe
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions ts/sql/Server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -1973,6 +1983,7 @@ const SCHEMA_VERSIONS = [
updateToSchemaVersion33,
updateToSchemaVersion34,
updateToSchemaVersion35,
updateToSchemaVersion36,
];

function updateSchema(db: Database): void {
Expand Down

0 comments on commit 5da5ffe

Please sign in to comment.