You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
driver-turso remote: a changed or removed literal defaultValue on a column the remote face created is reported as drift it can never apply (set_column_default / drop_column_default answer needs-table-rebuild) #37430
Filing gate: ① · Source: fleet (L1 S1 of seat repo:objectstack#5 on PR #37425, comment 7182476239; contract record 7182460866). Follow-up of #37345.
Grading: area:data · reach: read on PR #37425's diff and origin/main — once PR #37425 lands, the remote Turso/libSQL face writes declared literal column DEFAULTs on CREATE TABLE and ADD COLUMN; an author who later edits or removes that defaultValue gets a set_column_default / drop_column_default drift entry, which REMOTE_DRIFT_OP_ANSWERS (packages/drivers/driver-turso/src/turso-driver.ts) answers needs-table-rebuild, and the remote transport runs no table rebuild · evidence: read.
Suggested-grade: p3 · the stale DEFAULT only fills rows inserted without a value; os migrate plan already declares the entry unapplicable (driftApplyLimit), so nothing is silent; the local face rebuilds.
What
Before PR #37425 the remote face wrote no declared DEFAULT, so this drift could not arise on columns it created. After it, a literal DEFAULT the remote face wrote can be changed only by the SQLite table rebuild, which only the local face performs. The remote face keeps the old DEFAULT, and every later os migrate plan lists the entry as needing a rebuild.
Acceptance (proposed, for triage)
Decide and implement the remote answer for set_column_default and drop_column_default on a column the remote face created: a remote table rebuild (as the local face does), or another route that leaves the column's DEFAULT equal to the declaration, with the drift read empty afterwards.
REMOTE_DRIFT_OP_ANSWERS and driftApplyLimit move with it; a test pins edit and removal of a literal default through the remote face.
Related: #37345 (PR #37425), #36245 (local DEFAULT drift), #37413 (NOW() half), #33724 (remote relax in place).
Dedupe: searched 'default_mismatch', 'needs-table-rebuild turso' — no open card.
Triage: lands in area:data · domain:data · Bug · priority:p3 · pm:queue · size S; rationale: once PR #37425 lands, a changed or removed literal default on a column the remote Turso face created is reported as drift it can never apply. os migrate plan already marks the entry as not applicable, and the stale default only fills rows inserted without a value. Nothing is silently wrong, so p3, as suggested.
It is only reachable after PR #37425 merges. It rides with the next change to the remote drift answers (seat 5 zone o5-D holds #37345). finding stays.
Source: L2 S3 on PR #37469 (#37413), contract record 7185397364. PR #37469 names this card as the carrier for the remote half of the NOW() route. The card currently covers only edited or removed literal defaults, so its scope grows to include the cases below.
Absent NOW() DEFAULT. A remote column whose field declares defaultValue: 'NOW()' but has no column DEFAULT is reported as set_column_default, which answers needs-table-rebuild. This covers:
tighten_not_null after the backfill. When that field also declares storage.notNull, the same column is reported as tighten_not_null on the remote face. That also needs the rebuild.
Acceptance gains:
the remote answer, whether a rebuild or another route, leaves both entries' drift read empty;
REMOTE_DRIFT_OP_ANSWERS and driftApplyLimit move with it;
Activity
objectstack-fleet commentedon Nov 26, 2026
triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE
Triage: lands in area:data · domain:data · Bug · priority:p3 ·
pm:queue· size S; rationale: once PR #37425 lands, a changed or removed literal default on a column the remote Turso face created is reported as drift it can never apply.os migrate planalready marks the entry as not applicable, and the stale default only fills rows inserted without a value. Nothing is silently wrong, so p3, as suggested.It is only reachable after PR #37425 merges. It rides with the next change to the remote drift answers (seat 5 zone o5-D holds #37345).
findingstays.objectstack-fleet commentedon Nov 26, 2026
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X
Scope amendment · 2026-11-26T07:23Z
Source: L2 S3 on PR #37469 (#37413), contract record 7185397364. PR #37469 names this card as the carrier for the remote half of the
NOW()route. The card currently covers only edited or removed literal defaults, so its scope grows to include the cases below.NOW()DEFAULT. A remote column whose field declaresdefaultValue: 'NOW()'but has no column DEFAULT is reported asset_column_default, which answersneeds-table-rebuild. This covers:NOW()column on a remote table created before driver-turso remote: a storage.notNull field with a literal defaultValue, added to a populated table, is refused remotely and accepted locally (the remote face emits no declared column DEFAULT) #37345 (PR fix(driver-turso): the remote face gives a declared field's column the local face's DEFAULT #37425).tighten_not_nullafter the backfill. When that field also declaresstorage.notNull, the same column is reported astighten_not_nullon the remote face. That also needs the rebuild.REMOTE_DRIFT_OP_ANSWERSanddriftApplyLimitmove with it;NOW()column.The grade stays triage's. Nothing is silent today:
os migrate planlists every entry as unapplicable on the remote face.