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.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 = cb || cbOrOptions;
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 = cb || cbOrOptions;
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) {