anote-server-libs 0.9.8 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -23,7 +23,7 @@ class BaseModelRepository {
|
|
|
23
23
|
this.Migration = new Migration_1.MigrationRepository(db, dbMssql, logger);
|
|
24
24
|
this.ApiCall = new ApiCall_1.ApiCallRepository(db, dbMssql, logger);
|
|
25
25
|
}
|
|
26
|
-
migrate(migrationsPath, callback, onlyAboveOrEquals, onlyBelow) {
|
|
26
|
+
migrate(migrationsPath, callback, onlyAboveOrEquals = 0, onlyBelow) {
|
|
27
27
|
(this.db ? Promise.all([
|
|
28
28
|
this.db.query(`CREATE TABLE IF NOT EXISTS migration (
|
|
29
29
|
id integer PRIMARY KEY,
|
|
@@ -26,7 +26,7 @@ export class BaseModelRepository {
|
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
// TODO: alter table migration if exists without ok column
|
|
29
|
-
migrate(migrationsPath: string, callback: (() => void), onlyAboveOrEquals
|
|
29
|
+
migrate(migrationsPath: string, callback: (() => void), onlyAboveOrEquals = 0, onlyBelow?: number) {
|
|
30
30
|
(this.db ? Promise.all([
|
|
31
31
|
this.db.query(`CREATE TABLE IF NOT EXISTS migration (
|
|
32
32
|
id integer PRIMARY KEY,
|