Skip to content

feat: DBDiff rc.29 — renames, more object kinds, and what it does not compare - #148

Merged
jasdeepkhalsa merged 1 commit into
mainfrom
chore/dbdiff-rc29
Oct 15, 2026
Merged

jasdeepkhalsa merged 1 commit into
mainfrom
chore/dbdiff-rc29

Conversation

@jasdeepkhalsa

Copy link
Copy Markdown
Member

Bumps @dbdiff/cli to 3.0.0-rc.29.

With it, the schema check:

  • renames a column, table or sequence, keeping its rows, instead of dropping it and creating it again (Column renamed: public.people.name → full_name);
  • compares more kinds: range types, aggregates, default privileges, event triggers, rules, casts, extended statistics, text search configurations and dictionaries, foreign servers, user mappings and foreign tables, replica identity and statistics targets;
  • names the kinds it doesn't compare (operators, operator classes and so on) under the schema check's line. They aren't counted as drift.

The titles for these, and the handling of the notices, are already on main. This turns them on.

Tests: a new e2e runs through the CLI and reads its verdicts from the target database:

  • renames keep their rows;
  • the new kinds sync and a re-diff is empty;
  • an operator is named but not counted.

The unit suite and lint pass.

🤖 Generated with Claude Code

… compare

@dbdiff/cli 3.0.0-rc.29 renames a column, table or sequence, keeping its
rows, instead of dropping and creating it again; compares range types,
aggregates, default privileges, event triggers, rules, casts, extended
statistics, text search, foreign data, replica identity and statistics
targets; and names the kinds it does not compare, which SupaForge shows
beside the schema check.

e2e: renames keep their rows, the new kinds sync and converge, and an
operator is named without being counted, through the CLI, read from the
target.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
*
* Verdicts are read from the target database.
*/
import { describe, it, expect, beforeAll, afterAll, beforeEach } from 'vitest'
@jasdeepkhalsa
jasdeepkhalsa merged commit 7434172 into main Oct 15, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant