@akylas/kiss-orm
Advanced tools
Comparing version 2.1.6 to 2.1.7
import SqlQuery from '../../Queries/SqlQuery'; | ||
import DatabaseInterface from '../DatabaseInterface'; | ||
declare const _default: (database: DatabaseInterface, migrations: { | ||
[key: string]: SqlQuery; | ||
[key: string]: SqlQuery | (() => SqlQuery); | ||
}) => Promise<void>; | ||
export default _default; |
@@ -18,3 +18,3 @@ import SqlQuery from '../../Queries/SqlQuery'; | ||
try { | ||
await sequenceDb.query(migrationQuery); | ||
await sequenceDb.query(typeof migrationQuery === 'function' ? migrationQuery() : migrationQuery); | ||
await sequenceDb.query(sql ` | ||
@@ -21,0 +21,0 @@ INSERT INTO ${new QueryIdentifier('Migrations')} |
@@ -8,3 +8,3 @@ { | ||
"author": "Sébastien Caparros", | ||
"version": "2.1.6", | ||
"version": "2.1.7", | ||
"engines": { | ||
@@ -11,0 +11,0 @@ "node": ">= 12.0.0" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
40926