rake-db 2.4.35 → 2.4.36

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
@@ -541,6 +541,15 @@ const createTable$1 = async (migration, up, tableName, options, fn) => {
541
541
  then == null ? void 0 : then(result);
542
542
  }
543
543
  migration.migratedAsts.push(ast);
544
+ let table;
545
+ return {
546
+ get table() {
547
+ return table != null ? table : table = migration(tableName, shape, {
548
+ noPrimaryKey: options.noPrimaryKey ? "ignore" : void 0,
549
+ snakeCase: options.snakeCase
550
+ });
551
+ }
552
+ };
544
553
  };
545
554
  const makeAst$1 = (up, tableName, shape, tableData, options, noPrimaryKey) => {
546
555
  const shapePKeys = [];