rake-db 2.10.14 → 2.10.16
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.
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1368,12 +1368,12 @@ const createMigrationInterface = (tx, up, config) => {
|
|
|
1368
1368
|
class Migration {
|
|
1369
1369
|
createTable(tableName, cbOrOptions, cb) {
|
|
1370
1370
|
const options = !cbOrOptions || typeof cbOrOptions === "function" ? {} : cbOrOptions;
|
|
1371
|
-
const fn =
|
|
1371
|
+
const fn = typeof cbOrOptions === "function" ? cbOrOptions : cb;
|
|
1372
1372
|
return createTable$1(this, this.up, tableName, options, fn);
|
|
1373
1373
|
}
|
|
1374
1374
|
dropTable(tableName, cbOrOptions, cb) {
|
|
1375
1375
|
const options = !cbOrOptions || typeof cbOrOptions === "function" ? {} : cbOrOptions;
|
|
1376
|
-
const fn =
|
|
1376
|
+
const fn = typeof cbOrOptions === "function" ? cbOrOptions : cb;
|
|
1377
1377
|
return createTable$1(this, !this.up, tableName, options, fn);
|
|
1378
1378
|
}
|
|
1379
1379
|
changeTable(tableName, cbOrOptions, cb) {
|