@dudousxd/nestjs-catalog 0.15.0 → 0.16.0

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.
@@ -85,6 +85,20 @@ export interface CatalogEventPayloads {
85
85
  typeName: string;
86
86
  table: string;
87
87
  addedColumns: string[];
88
+ /**
89
+ * Indexes this DDL added, when it added any.
90
+ *
91
+ * Optional and separate from {@link addedColumns} rather than folded into
92
+ * it, because the two are different facts about a table and only one of them
93
+ * changes what can be stored in it. An operator reading the trail for "when
94
+ * did this column appear" must not have an index name come back.
95
+ *
96
+ * A store that evolves an index on an existing table emits this with no
97
+ * columns added, which is a real event and not an empty one — see
98
+ * `ensureSnapshotBatchIndex` in the MikroORM store, where a table that
99
+ * predates the index acquires it on the next load.
100
+ */
101
+ addedIndexes?: string[];
88
102
  created: boolean;
89
103
  };
90
104
  /** A batch landed. Fires per batch, so a large load emits many. */