@voltro/database 0.42.0 → 0.43.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/CHANGELOG.md +91 -0
- package/dist/index.d.ts +14 -14
- package/dist/sql.d.ts +2 -2
- package/dist/sql.js +510 -495
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -39,6 +39,97 @@ _Changes staged for the next release accumulate here (rolled up from
|
|
|
39
39
|
|
|
40
40
|
---
|
|
41
41
|
|
|
42
|
+
## [0.43.0] — 2026-08-18
|
|
43
|
+
|
|
44
|
+
### ⚠ BREAKING
|
|
45
|
+
|
|
46
|
+
- **@voltro/data-transfer, @voltro/cli** — `DanglingReferenceError` is now `RowsRefusedError`, and it separates the rows that failed from the rows that failed because those rows did.
|
|
47
|
+
|
|
48
|
+
**The name.** The import raised it for EVERY row still refused after deferred-FK resolution, whatever the reason — a NOT NULL violation, a duplicate key, a value the database computes for itself. The tag named ONE possible cause and put it where a reader looks first, so any other refusal arrived mislabelled. The new name states the outcome; each row's `reason` states the cause, which is where a cause can honestly be claimed.
|
|
49
|
+
|
|
50
|
+
**The split.** A row is `derived` when one of its reference columns holds the primary key of another row that also failed in this run: it could not have landed whatever it contained, so its reason describes the parent's problem. The relation is transitive, decided from the DATA (the failed ids against the reference-typed values), so no schema knowledge is needed. `primaryCount` is the number an operator acts on, `rows` lists primary failures FIRST so the cap never spends its budget on consequences, and the CLI leads with both numbers:
|
|
51
|
+
|
|
52
|
+
```
|
|
53
|
+
import refused 300 row(s), of which 1 are the actual failures — the rest could
|
|
54
|
+
not land because a row they reference did not.
|
|
55
|
+
teams t1 foreign key teams_ibfk_1: the referenced row does not exist [1452]
|
|
56
|
+
… and 299 row(s) behind them. Fix the 1 above and re-run; they resolve with
|
|
57
|
+
their parents.
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
In an FK-dense bundle one refused parent takes its whole subtree with it, so the length of a flat list says how connected the data is, not how many problems there are — and the single row that explains all of them sits somewhere in the middle of it.
|
|
61
|
+
|
|
62
|
+
The codemod rewrites the import and every use of the symbol. It does NOT rewrite a tag STRING (`Effect.catchTag('DanglingReferenceError', …)`, `err._tag === '…'`) — change those to `'RowsRefusedError'` — and the payload gained `primaryCount` plus a `derived` flag per row.
|
|
63
|
+
|
|
64
|
+
### Fixed
|
|
65
|
+
|
|
66
|
+
- **@voltro/cli** — `voltro doctor`'s `subject-write-no-guard` rule reads the DESCRIPTOR before it reports. It looked only at the executor, and the access decision is not declared there.
|
|
67
|
+
|
|
68
|
+
Every form of access decision the framework has — `internal: true`, `guards: [...]`, `openAccess:` — is declared on the DESCRIPTOR. So an app that declares them properly got a finding for each one, and on a codebase whose procedures are mostly `internal: true` the rule fires on essentially all of them and is wrong essentially every time.
|
|
69
|
+
|
|
70
|
+
That is worse than a rule that finds nothing: it is the longest line in the report and it reads like a security finding, so it teaches the reader to skim the place a real finding would have appeared.
|
|
71
|
+
|
|
72
|
+
The premise was structurally impossible for most of them, and the framework says so itself: `security.defaultDeny` refuses at boot any wire-exposed procedure declaring neither `guards:` nor `openAccess:`. So "an anonymous caller reaches the write" can only be true of an `openAccess` procedure. That is what the rule looks for now — plus the handler check it always honoured, plus an ownership comparison against `subject.id`, which is the refusal the rule says is missing. Where no descriptor can be read, it says nothing: the claim is about a declaration, and a finding whose evidence was never opened is the failure mode this fixes.
|
|
73
|
+
|
|
74
|
+
The `use:` line changed with it. It recommended `.guard(requireScope('…'))`; the shipped guide teaches declarative `guards:` and calls a hand-written per-executor scope check the thing `guards:` exists to delete. A rule may not recommend the shape the guide argues against.
|
|
75
|
+
- **@voltro/database, @voltro/data-transfer** — A `voltro data` transfer no longer carries GENERATED column values, and no longer loses every row that has one.
|
|
76
|
+
|
|
77
|
+
The export wrote the computed values into the bundle and the import sent them back in the `INSERT` column list. MariaDB refuses that for any value except NULL (`1906: The value specified for generated column 'x' in table 't' has been ignored`); postgres refuses a non-DEFAULT value outright. So the transfer failed per ROW, not per table, and only for the rows whose generated value was non-NULL.
|
|
78
|
+
|
|
79
|
+
That selectivity is the dangerous part. `.uniqueActive()` lowers to exactly such a column on mysql/mariadb — a STORED generated column holding the key while the row is live and NULL once it is soft-deleted — so the refused rows are the LIVE ones and the accepted ones are the tombstones. A table can come out looking like "a few rows failed" or empty, depending only on how many of its rows are deleted, and any table with a foreign key into it fails behind it.
|
|
80
|
+
|
|
81
|
+
Both ends are fixed from one source of truth: **introspection now reports generated columns on every dialect** (`generatedAs`, from `information_schema.generation_expression` on mysql/mariadb, `is_generated` on postgres, `PRAGMA table_xinfo`'s hidden flag on sqlite, `sys.computed_columns` on mssql). It was declared-side only before — invisible to the planner, which does not compare it, and load-bearing for anything that writes rows back.
|
|
82
|
+
|
|
83
|
+
The exporter omits those columns, values and all. The importer strips them from every incoming row using the TARGET's snapshot, because a bundle already written still carries them and a file on disk is data, read where it is.
|
|
84
|
+
|
|
85
|
+
**`voltro serve`'s admin export/import needed a second fix, and without it this one reached only the direct transport.** The running instance hands those handlers `declaredSnapshot(tables)` — no dialect — and `.uniqueActive()` lowers to a generated column only when the snapshot knows the engine. So over `--target api` the snapshot described a schema with no generated columns while the database had several, and the export wrote their values back into the bundle exactly as before. It passes the dialect now (the variable was already on the next line).
|
|
86
|
+
|
|
87
|
+
`generatedAs` is also kept OUT of the schema fingerprint. Introspection can read the fact back but not a comparable value — the engine returns its own normalisation of the expression, never the declared spelling — so hashing it would make declared and live disagree permanently: a schema nobody touched reporting a changed declaration on every boot, and a transfer target that matches its bundle exactly refused as drifted.
|
|
88
|
+
|
|
89
|
+
Covered by a live mariadb→mariadb and mysql→mysql round trip over a `.uniqueActive()` table with live and soft-deleted rows, asserting the target recomputed the value rather than that the row merely arrived.
|
|
90
|
+
- **@voltro/sql-mysql** — On mysql/mariadb, a write REJECTED by the database through `insertIgnore` was reported as a conflict when the caller was not inside a transaction — and never reached the caller as a typed `ConstraintViolation` at all.
|
|
91
|
+
|
|
92
|
+
Two causes, both measured against live MySQL 8.4 and MariaDB 11.
|
|
93
|
+
|
|
94
|
+
**The connection.** `INSERT IGNORE` demotes every error to a warning, so the store reads `SHOW WARNINGS` to tell a rejection from a conflict. That describes the last statement on a CONNECTION, and outside a transaction every statement acquires its own from the pool — so the read was unattributable and came back empty. The rejected write then surfaced as "the insert was skipped as a conflict, but no existing row matches conflictColumns […] the constraint that fired is unknown", whose enumeration lists only conflict causes. A rejection described as a conflict is the exact sentence this path was fixed once already for producing; it survived on the path that had no transaction to read on. The store now pins one connection for the whole decision — the same pinning `insertRecoverAutoId` does for `LAST_INSERT_ID()`.
|
|
95
|
+
|
|
96
|
+
**The classification.** The store swallowed the driver's error and raised a prose one of its own, so `classifyConstraintViolation` had nothing to read: this was the one write path where the typed error could not fire, while every other one produced it. The warning IS the driver's payload — `INSERT IGNORE` only changed how it was delivered — so it is handed on in the shape the driver would have thrown. A rejection now arrives as the same `ConstraintViolation { kind: 'foreignKey', … }` a plain `insert` produces. Nothing new crosses the wire: the classifier extracts the constraint NAME as a delimited group, never the sentence.
|
|
97
|
+
|
|
98
|
+
This is the default `voltro data import` path (`--mode append`, `--on-conflict skip`, without `--atomic`), so a row rejected by a foreign key was reported to the operator as a conflict with an unknown cause.
|
|
99
|
+
|
|
100
|
+
`constraintViolation.integration.test.ts` now asserts the `insertIgnore` seam per dialect against live postgres 17, MySQL 8.4, MariaDB 11 and SQL Server 2022. It was the missing assertion behind a claim derived from the wiring — the classification does sit on all ten write paths, which is not the same as a classifiable error arriving on all ten.
|
|
101
|
+
- **@voltro/protocol, @voltro/runtime** — The framework's store errors — `ConstraintViolation`, `TenantScopeViolation`, `TenantRowNotFound`, `ServerOnlyColumnWrite`, `TableValidationFailed`, `StoreOperationFailed` — are exported from `@voltro/protocol` and can therefore be declared in a descriptor's `error:` union. They could not be.
|
|
102
|
+
|
|
103
|
+
They lived in `@voltro/runtime`, which reaches `node:child_process`, `node:http` and `node:crypto`. A descriptor is loaded VALUE-LEVEL by the web client (the `RpcClient` needs every procedure's Schema), so a descriptor importing from there is refused at boot by the browser-safety guard — correctly. The typed half of these errors was therefore unreachable: the docs told you to declare them, and the boot said no.
|
|
104
|
+
|
|
105
|
+
What that leaves is the untyped half only. The error still arrives as an `InternalError` carrying a readable sentence, so telling `foreignKey` ("the row you picked is gone") from `foreignKeyInUse` ("this row is still referenced") — two different messages for the user — means parsing that sentence. Over a set of generated delete mutations that is a string comparison per procedure, which is the thing the typed error exists to delete.
|
|
106
|
+
|
|
107
|
+
`@voltro/runtime` re-exports all six, so server code is unchanged. The classes have no server dependency of any kind — the file imports `Schema` from `effect` and nothing else, and `browserSafetyGuard.test.ts` now pins a descriptor that declares one, so moving them back reads as a boot failure rather than as a passing rename.
|
|
108
|
+
- **@voltro/database, @voltro/sql-mysql** — A blocked `alter-column-type` told every dialect to write a postgres cast.
|
|
109
|
+
|
|
110
|
+
The refusal is correct — a bare type change may not be value-preserving, so it is refused until acknowledged. Its `fix:` line was not:
|
|
111
|
+
|
|
112
|
+
```
|
|
113
|
+
acknowledge it on the column: `.narrowedFrom('json', { using: 'meta::text' })`
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
`USING <expr>` is postgres syntax and a postgres capability. The mysql arm of the applier emits `MODIFY COLUMN`, the mssql arm `ALTER COLUMN`, and sqlite rebuilds the table — none of them can carry a cast expression and none of them reads `using`. So an operator on any other engine was handed a line to paste into their schema containing syntax their database has never seen, inside an argument that is discarded. A refusal is read as an instruction, and the more carefully it is read the more thoroughly a wrong one is followed.
|
|
117
|
+
|
|
118
|
+
The fix line is dialect-aware now: postgres keeps the `using` half, everything else gets `.narrowedFrom('<type>')` plus the fact that the engine converts in place — because a refusal that offers no expressible fix reads as "the framework cannot do this at all".
|
|
119
|
+
|
|
120
|
+
Covered on live MySQL and MariaDB by both halves at once: what the refusal SAYS, and that following it applies AND converges with the row intact. A message test alone would keep passing over a broken apply; a convergence test alone is what let the wrong message survive this long.
|
|
121
|
+
|
|
122
|
+
Also on the same path: `upsert` with a PARTIAL row (one omitting a NOT NULL column that has no default) failed on MariaDB and succeeded on MySQL. The native `INSERT … ON DUPLICATE KEY UPDATE` validates its insert half even when only the update half runs, so the row was rejected although the target existed and only needed patching. A partial row takes the lookup path on both engines now; the single-statement form still covers the complete-row case, which is what a data transfer and every generated CRUD write send.
|
|
123
|
+
- **@voltro/sql-mysql** — On MariaDB, `upsert` could write a DIFFERENT row than the one it was given and report success.
|
|
124
|
+
|
|
125
|
+
`INSERT … ON DUPLICATE KEY UPDATE` fires on ANY unique key, not on the one named in `conflictColumns`. So an incoming row whose (say) `email` already belonged to a different primary key updated THAT row instead — and since `id` is excluded from the SET list, the row the caller handed over was never written. Measured on a live server: the call returned a row, the target kept the old id, the new row was absent, and the existing row had silently taken the incoming values. A bulk transfer on top of that prints `import complete` over missing data, which is the worst failure shape available: there is nothing to investigate.
|
|
126
|
+
|
|
127
|
+
The two engines of the family disagreed here, which is part of why it survived. The non-RETURNING path (MySQL) looks the row up by `conflictColumns` first, does not find it, and lets the INSERT fail with a duplicate-key error. Loud was always right.
|
|
128
|
+
|
|
129
|
+
Both refuse now, with a message naming both ids and the fact that the collision was on a constraint other than the one named. The check runs inside a transaction — a short one of the store's own when the caller is not already in one — so the wrong row is rolled back rather than reported after the fact: detecting this afterwards still leaves someone else's row overwritten.
|
|
130
|
+
|
|
131
|
+
---
|
|
132
|
+
|
|
42
133
|
## [0.42.0] — 2026-08-17
|
|
43
134
|
|
|
44
135
|
### ⚠ BREAKING
|
package/dist/index.d.ts
CHANGED
|
@@ -173,7 +173,7 @@ export declare const attachEagerLoads: (rows: ReadonlyArray<Row_2>, spec: WithSp
|
|
|
173
173
|
* Returns an object with the keys OMITTED rather than set to `undefined`, so an
|
|
174
174
|
* unattributed event is byte-identical to one from before this existed — no
|
|
175
175
|
* `traceId: undefined` appearing in a snapshot, a broadcast payload, or a
|
|
176
|
-
*
|
|
176
|
+
* deployment's `Object.keys`.
|
|
177
177
|
*
|
|
178
178
|
* **Call it where the event is CREATED, not where it is delivered.** A
|
|
179
179
|
* transactional write queues its events and flushes them after commit, by which
|
|
@@ -222,7 +222,7 @@ export declare const auditTableIndexes: (table: Table<string, Record<string, Col
|
|
|
222
222
|
* so an insert need not supply them. Name-based on purpose: a hand-declared
|
|
223
223
|
* `createdAt` with no default reads as optional here (the lenient direction —
|
|
224
224
|
* never rejects valid code), while the mixin-managed ones are always filled.
|
|
225
|
-
* Runtime tuple + the type derived from it, so a
|
|
225
|
+
* Runtime tuple + the type derived from it, so a deployment that must skip these
|
|
226
226
|
* at runtime (e.g. `@voltro/testing`'s `fixtureRow`, which fills only
|
|
227
227
|
* caller-owned required columns) reads the SAME list the insert-row type uses —
|
|
228
228
|
* no second copy to drift. */
|
|
@@ -651,7 +651,7 @@ export declare type ChangeEvent = {
|
|
|
651
651
|
* How the event reached this process. Absent/'inline' = emitted by this
|
|
652
652
|
* process's own write path; 'injected' = delivered over a cross-instance
|
|
653
653
|
* transport (`injectExternalChange` — the broadcast bus or a CDC
|
|
654
|
-
* consumer). A
|
|
654
|
+
* consumer). A deployment that must act exactly once per change
|
|
655
655
|
* FLEET-WIDE combines this with `DataStore.changeScope`: on a
|
|
656
656
|
* `'local'`-scope store, acting on non-injected events covers each
|
|
657
657
|
* change exactly once (on its writer); on a `'fleet'`-scope store every
|
|
@@ -2858,7 +2858,7 @@ declare type EmptyMerge = unknown;
|
|
|
2858
2858
|
*
|
|
2859
2859
|
* It was three. The store wrote `encrypt(JSON.stringify(v))`, the escape hatch
|
|
2860
2860
|
* wrote `encrypt(v)`, and the backfill wrote `encrypt(v)`. All three produce the
|
|
2861
|
-
* `enc:v1:` envelope and NOTHING distinguishes them. A
|
|
2861
|
+
* `enc:v1:` envelope and NOTHING distinguishes them. A deployment wrote session
|
|
2862
2862
|
* rows through the escape hatch and read them through the store, which threw
|
|
2863
2863
|
* `FieldDecryptionError` blaming the key — the key was right; the ENCODING was
|
|
2864
2864
|
* not. Eight of their ten session rows, and the failure looked like a key
|
|
@@ -3556,7 +3556,7 @@ export declare const isBranchNamespace: (namespace: string) => boolean;
|
|
|
3556
3556
|
* `isRelationsSpec` rejects it (registering nothing has no meaning), which is
|
|
3557
3557
|
* right, but the caller then cannot tell it apart from a module with no
|
|
3558
3558
|
* `relations(...)` export at all. `voltro dev` reported both as *"no relations(...)
|
|
3559
|
-
* export found"*, and a
|
|
3559
|
+
* export found"*, and a deployment with 368 relations files got exactly one warning
|
|
3560
3560
|
* pointing at a file that HAS the export:
|
|
3561
3561
|
*
|
|
3562
3562
|
* export const easyProxyIntegrationsRelations = relations(easyProxyIntegrations, ({ one }) => ({
|
|
@@ -3629,7 +3629,7 @@ export declare const isPrimaryKeyConflictError: (err: unknown) => err is Primary
|
|
|
3629
3629
|
* MySQL `3024` (ER_QUERY_TIMEOUT), MariaDB `1969` (ER_STATEMENT_TIMEOUT), mssql
|
|
3630
3630
|
* `ETIMEOUT` (tedious request timeout), sqlite `SQLITE_INTERRUPT`. NOT a
|
|
3631
3631
|
* transient error — a re-run just repeats the runaway, so it must not retry
|
|
3632
|
-
* (`servePipeline`'s transient set deliberately excludes it). Lets a
|
|
3632
|
+
* (`servePipeline`'s transient set deliberately excludes it). Lets a deployment /
|
|
3633
3633
|
* observability layer name the failure instead of reading an opaque SqlError. */
|
|
3634
3634
|
export declare const isQueryTimeout: (dbCause: Record<string, unknown>) => boolean;
|
|
3635
3635
|
|
|
@@ -3925,7 +3925,7 @@ export declare interface ManyToManyRelation {
|
|
|
3925
3925
|
* the dangerous one: an empty `IN ()` gets dropped, and a DROPPED predicate does
|
|
3926
3926
|
* not narrow — it WIDENS, to the whole tenant. Here it is safe (the SQL
|
|
3927
3927
|
* compiler emits `FALSE`, the in-memory evaluator returns false, and both are
|
|
3928
|
-
* pinned by tests) but an adopting
|
|
3928
|
+
* pinned by tests) but an adopting project wrote `eq('id', '')` instead, because
|
|
3929
3929
|
* they could not tell from the outside and would not bet a visibility rule on
|
|
3930
3930
|
* it. They were right not to.
|
|
3931
3931
|
*
|
|
@@ -5434,7 +5434,7 @@ export declare const registerPendingAttribution: (key: string, attribution: Writ
|
|
|
5434
5434
|
* Register a single `relations()` spec. Multiple specs on the same
|
|
5435
5435
|
* source MERGE — a second spec adds to the first one. A name
|
|
5436
5436
|
* collision between two DIFFERENT specs throws here so the offending
|
|
5437
|
-
* declaration site is the error scope, not a downstream
|
|
5437
|
+
* declaration site is the error scope, not a downstream deployment.
|
|
5438
5438
|
*
|
|
5439
5439
|
* Re-registering the SAME relation object is a no-op, mirroring
|
|
5440
5440
|
* `registerTable`'s `existing === table` tolerance — and for the same reason:
|
|
@@ -5461,7 +5461,7 @@ export declare const registerRelations: (spec: RelationsSpec) => void;
|
|
|
5461
5461
|
*
|
|
5462
5462
|
* ── Two registrations for one table used to be a silent last-write-wins ─────
|
|
5463
5463
|
*
|
|
5464
|
-
* A
|
|
5464
|
+
* A deployment registered `_voltro_schedule_claims` at 1 hour from a startup, and
|
|
5465
5465
|
* one second later the framework registered its own default for the same table.
|
|
5466
5466
|
* Ours won, nothing said so, and their startup went on logging `bounded to 1h`
|
|
5467
5467
|
* at every boot while the table kept everything younger than the framework's
|
|
@@ -5752,7 +5752,7 @@ export declare interface RetentionSpec {
|
|
|
5752
5752
|
* The environment variable that changes this TTL, for the boot announcement.
|
|
5753
5753
|
*
|
|
5754
5754
|
* A standing DELETE whose only control is a variable you have to already know
|
|
5755
|
-
* the name of is how a
|
|
5755
|
+
* the name of is how a deployment lost 1 944 freshly-migrated rows to a 180-day
|
|
5756
5756
|
* default — and then got it wrong a second time by setting it in a running pod
|
|
5757
5757
|
* rather than in a file, where the next deploy would have reverted it. Naming
|
|
5758
5758
|
* it in the boot line is what turns "you have to know" into "you were told".
|
|
@@ -5946,7 +5946,7 @@ export declare type SchemaChangeSeedHook = (event: SchemaChangeSeedEvent) => Pro
|
|
|
5946
5946
|
* inferred {@link Table} generic pulls its method signatures into the emitted
|
|
5947
5947
|
* `.d.ts`, and those reference the private `ColumnBuilder` class — which
|
|
5948
5948
|
* TypeScript refuses to name across the boundary (TS4094). `SchemaTable`
|
|
5949
|
-
* exposes only the plain-data surface a
|
|
5949
|
+
* exposes only the plain-data surface a deployment of a contributed table
|
|
5950
5950
|
* actually reads (`.tableName`, `.fields`, `.appliedIndexes`), so it names
|
|
5951
5951
|
* cleanly and stays browser-safe (pure interfaces, no builder, no server
|
|
5952
5952
|
* imports). A concrete `Table<...>` is assignable to it.
|
|
@@ -6093,7 +6093,7 @@ export declare interface SeedStore {
|
|
|
6093
6093
|
* The primitive an idempotent restore is actually built on: `upsertByUnique`
|
|
6094
6094
|
* costs a read per row and OVERWRITES what it finds, which is wrong when the
|
|
6095
6095
|
* live row is newer than the snapshot. This is one statement per row and
|
|
6096
|
-
* leaves an existing row alone. Reported
|
|
6096
|
+
* leaves an existing row alone. Reported from a real deployment restoring 1361 rows
|
|
6097
6097
|
* across 167 tables in multiple passes for FK order — with only
|
|
6098
6098
|
* `upsertByUnique` available, every pass re-read and re-wrote everything.
|
|
6099
6099
|
*/
|
|
@@ -6342,7 +6342,7 @@ export declare interface StreamTableOptions {
|
|
|
6342
6342
|
readonly where?: Predicate;
|
|
6343
6343
|
/** Rows per DB page. Larger = fewer round-trips, more per-page memory.
|
|
6344
6344
|
* Default 1000. This is the READ page size; it is independent of any
|
|
6345
|
-
* downstream write/checkpoint chunking a
|
|
6345
|
+
* downstream write/checkpoint chunking a deployment layers on. */
|
|
6346
6346
|
readonly chunkSize?: number;
|
|
6347
6347
|
/** Pass-through of the reactive scope opt-outs. For a faithful physical
|
|
6348
6348
|
* export use the RAW dialect store (no scoping applied at all); these
|
|
@@ -7624,7 +7624,7 @@ export declare interface WindowSpec {
|
|
|
7624
7624
|
* request behind this write", so the result does not look like a defect; it looks
|
|
7625
7625
|
* like a schedule. In a compliance trail that asymmetry is the whole problem.
|
|
7626
7626
|
*
|
|
7627
|
-
* A
|
|
7627
|
+
* A deployment could not reproduce it across 2700 writes at 96-way concurrency with
|
|
7628
7628
|
* every core saturated — which is good evidence the window is narrow at their load
|
|
7629
7629
|
* and no evidence at all that it is closed. Their own framing is why this is being
|
|
7630
7630
|
* closed structurally rather than left: *"impossible beats unlikely when the
|
package/dist/sql.d.ts
CHANGED
|
@@ -817,7 +817,7 @@ export declare interface ColumnSnapshot {
|
|
|
817
817
|
* never reached the comparison. So the differ was not comparing lengths wrongly
|
|
818
818
|
* — it could not see them. Adding `.maxLength(n)` to an EXISTING column planned
|
|
819
819
|
* zero operations and reported "schema is up to date" while the live column
|
|
820
|
-
* stayed `longtext`. A
|
|
820
|
+
* stayed `longtext`. A deployment hit that trying to apply the documented remedy
|
|
821
821
|
* for MariaDB's hash long-unique, and their contrast is what pinned it: a column
|
|
822
822
|
* bounded AT CREATION was `varchar(64)` (DDL path, fine), one bounded afterwards
|
|
823
823
|
* stayed `longtext` (diff path, blind).
|
|
@@ -2408,7 +2408,7 @@ export declare const reactiveTriggerName: (tableName: string, channel: string) =
|
|
|
2408
2408
|
* dimension at all, so `db plan` reports 0 operations and `db apply` reports
|
|
2409
2409
|
* "schema is up to date" while the drift detector is simultaneously telling
|
|
2410
2410
|
* you 500 tables have no trigger, and pointing at `voltro db apply` as the
|
|
2411
|
-
* remedy. Reported
|
|
2411
|
+
* remedy. Reported from a real deployment with 525 tables and 27 triggers, all 27 on
|
|
2412
2412
|
* framework tables.
|
|
2413
2413
|
*
|
|
2414
2414
|
* A single instance is unaffected — its own writes reach its own subscribers
|