X-Git-Url: http://git.squeep.com/?p=squeep-indie-auther;a=blobdiff_plain;f=src%2Fdb%2Fsqlite%2Findex.js;fp=src%2Fdb%2Fsqlite%2Findex.js;h=1858a657825196bad0eae4bde50204bdcbc47af9;hp=878a004e3126f67d7b734256881b94fc59314864;hb=e7436419933940f90769c8be1d63acccdd947b92;hpb=6f9af8204a725b70fa65728cb0d627d8a5e5b348 diff --git a/src/db/sqlite/index.js b/src/db/sqlite/index.js index 878a004..1858a65 100644 --- a/src/db/sqlite/index.js +++ b/src/db/sqlite/index.js @@ -3,7 +3,7 @@ const common = require('../../common'); const Database = require('../abstract'); const DBErrors = require('../errors'); -const svh = require('../schema-version-helper'); +const { unappliedSchemaVersions } = require('../schema-version-helper'); const SQLite = require('better-sqlite3'); const fs = require('fs'); const path = require('path'); @@ -96,7 +96,7 @@ class DatabaseSQLite extends Database { // Apply migrations const currentSchema = this._currentSchema(); - const migrationsWanted = svh.unappliedSchemaVersions(__dirname, currentSchema, this.schemaVersionsSupported); + const migrationsWanted = unappliedSchemaVersions(__dirname, currentSchema, this.schemaVersionsSupported); this.logger.debug(_scope, 'schema migrations wanted', { migrationsWanted }); migrationsWanted.forEach((v) => { const fPath = path.join(__dirname, 'sql', 'schema', v, 'apply.sql');