Skip to content

Commit cbe6726

Browse files
Version Packages (#15)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 512cc62 commit cbe6726

3 files changed

Lines changed: 11 additions & 10 deletions

File tree

‎.changeset/validate-structural-table-drift.md‎

Lines changed: 0 additions & 9 deletions
This file was deleted.

‎CHANGELOG.md‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# durable-db
22

3+
## 0.1.11
4+
5+
### Patch Changes
6+
7+
- 512cc62: fix: `validate` no longer reports false schema drift for tables altered with `ALTER TABLE ... ADD COLUMN`
8+
9+
The drift check compared raw `sqlite_master` CREATE text between the migration-replay database and the from-scratch schema database. SQLite rewrites a table's stored CREATE statement when a column is added via ALTER (the column is spliced in before the closing paren, always last), so any generated column-add migration could never text-match the fresh CREATE — every such migration failed validation and blocked deploys.
10+
11+
Tables are now compared structurally via PRAGMA introspection (`pragma_table_info`, `pragma_index_list`/`pragma_index_info` for UNIQUE constraints, `pragma_foreign_key_list`), which reflects what SQLite actually enforces regardless of how the table was built. Column order is intentionally ignored. Indexes, views, and triggers are still compared textually. Known gap: CHECK constraints, column collations, and WITHOUT ROWID/STRICT options are not exposed by PRAGMAs and are no longer part of the comparison.
12+
313
## 0.1.10
414

515
### Patch Changes

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "durable-db",
3-
"version": "0.1.10",
3+
"version": "0.1.11",
44
"repository": {
55
"type": "git",
66
"url": "https://github.com/eagerpatch/durable-db.git"

0 commit comments

Comments
 (0)