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.mjs
CHANGED
|
@@ -1347,12 +1347,12 @@ const createMigrationInterface = (tx, up, config) => {
|
|
|
1347
1347
|
class Migration {
|
|
1348
1348
|
createTable(tableName, cbOrOptions, cb) {
|
|
1349
1349
|
const options = !cbOrOptions || typeof cbOrOptions === "function" ? {} : cbOrOptions;
|
|
1350
|
-
const fn =
|
|
1350
|
+
const fn = typeof cbOrOptions === "function" ? cbOrOptions : cb;
|
|
1351
1351
|
return createTable$1(this, this.up, tableName, options, fn);
|
|
1352
1352
|
}
|
|
1353
1353
|
dropTable(tableName, cbOrOptions, cb) {
|
|
1354
1354
|
const options = !cbOrOptions || typeof cbOrOptions === "function" ? {} : cbOrOptions;
|
|
1355
|
-
const fn =
|
|
1355
|
+
const fn = typeof cbOrOptions === "function" ? cbOrOptions : cb;
|
|
1356
1356
|
return createTable$1(this, !this.up, tableName, options, fn);
|
|
1357
1357
|
}
|
|
1358
1358
|
changeTable(tableName, cbOrOptions, cb) {
|