orchid-orm 1.57.0 → 1.57.2

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.
@@ -1284,7 +1284,7 @@ const collectCodeComparableItemsType = (config, codeItems, key) => {
1284
1284
  ...codeItem.options,
1285
1285
  include: codeItem.options.include === void 0 ? void 0 : config.snakeCase ? orchidCore.toArray(codeItem.options.include).map(orchidCore.toSnakeCase) : orchidCore.toArray(codeItem.options.include),
1286
1286
  columns: codeItem.columns,
1287
- name: codeItem.name,
1287
+ name: codeItem.options.name,
1288
1288
  columnKeys: codeItem.columnKeys,
1289
1289
  includeKeys: codeItem.includeKeys
1290
1290
  });
@@ -1416,8 +1416,7 @@ const handleItemChange = ({
1416
1416
  const column = changingColumns[dbColumn.column];
1417
1417
  if (column) {
1418
1418
  ((_a = column.from.data)[key] ?? (_a[key] = [])).push({
1419
- options: dbItem,
1420
- name,
1419
+ options: { ...dbItem, name },
1421
1420
  with: key === "indexes" ? void 0 : dbColumn.with
1422
1421
  });
1423
1422
  return;
@@ -1425,8 +1424,7 @@ const handleItemChange = ({
1425
1424
  }
1426
1425
  ((_b = changeTableAst.drop)[key] ?? (_b[key] = [])).push({
1427
1426
  columns: dbColumns,
1428
- options: dbItem,
1429
- name
1427
+ options: { ...dbItem, name }
1430
1428
  });
1431
1429
  } else if (rename) {
1432
1430
  delayedAst.push({