@voltro/database 0.69.0 → 0.70.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.
package/dist/sql.d.ts CHANGED
@@ -1754,6 +1754,27 @@ export declare interface MigrationPlan {
1754
1754
  readonly fromFingerprint: string;
1755
1755
  /** Post-state fingerprint (what the DB will look like after apply). */
1756
1756
  readonly toFingerprint: string;
1757
+ /**
1758
+ * Where the two fingerprints part when the plan is EMPTY. `fromFingerprint`
1759
+ * hashes the whole live introspection; `toFingerprint` hashes the declaration;
1760
+ * a plan of zero operations says the schemas agree — and the hashes can still
1761
+ * differ. Then this names the tables on which they do:
1762
+ *
1763
+ * `outsideDiff` — live tables the diff never compares: framework-owned
1764
+ * (`cluster_*`, an undeclared `_voltro_*`), soft-drop snapshots, a name in
1765
+ * `VOLTRO_DB_IGNORE_TABLES`, the old name of a rename. In the live hash, in
1766
+ * no declaration.
1767
+ * `diffEquivalent` — tables on both sides the diff planned nothing for whose
1768
+ * live and declared snapshots hash apart anyway: a detail introspection
1769
+ * reports differently from how it was declared.
1770
+ *
1771
+ * Both empty means the hashes agree table for table. A reader who meets two
1772
+ * different hashes over `0 operations` is otherwise left to guess what moved.
1773
+ */
1774
+ readonly fingerprintDivergence: {
1775
+ readonly outsideDiff: ReadonlyArray<string>;
1776
+ readonly diffEquivalent: ReadonlyArray<string>;
1777
+ };
1757
1778
  /** Count summaries by class — what `voltro db plan` prints. */
1758
1779
  readonly summary: {
1759
1780
  readonly safe: number;