rake-db 2.10.22 → 2.10.24

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 CHANGED
@@ -961,7 +961,10 @@ const makeAst$1 = (up, name, changeData, changeTableData2, options) => {
961
961
  const { comment } = options;
962
962
  const shape = {};
963
963
  for (const key in changeData) {
964
- const item = changeData[key];
964
+ let item = changeData[key];
965
+ if (item instanceof orchidCore.ColumnTypeBase) {
966
+ item = add(item);
967
+ }
965
968
  if ("type" in item) {
966
969
  if (up) {
967
970
  shape[key] = item.type === "change" && item.usingUp ? __spreadProps$2(__spreadValues$3({}, item), { using: item.usingUp }) : item;