orchid-orm 1.57.0 → 1.57.1

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