Skip to content

Keep generate names distinct and render SQLite constraints in statements - #495

Merged
rmcfadden merged 1 commit into
mainfrom
fix/generate-naming-sqlite-constraints
Nov 5, 2026
Merged

rmcfadden merged 1 commit into
mainfrom
fix/generate-naming-sqlite-constraints

Conversation

@rmcfadden

Copy link
Copy Markdown
Contributor

Summary

  • Version snapshots freeze authored YAML, and generate keys colliding User types by kind so C#, TypeScript, and Rust keep both exports.
  • generate --delete (default false) prunes leftover output files; unique and foreign-key changes render in SQLite as indexes or a table rebuild, not ALTER CONSTRAINT.

Test plan

  • Unit hook (npm test, CLI generate/Rust compile, C# SQLite renderer and schema-diff)
  • generate all --dialect typescript --no-auto-migrate-up on user-roles after this lands

Made with Cursor

…statements.

Version snapshots compare authored YAML, colliding User types export without overwriting, leftover generate files stay unless --delete, and SQLite unique/FK changes become indexes or a table rebuild instead of ALTER CONSTRAINT.

Co-authored-by: Cursor <cursoragent@cursor.com>
@rmcfadden
rmcfadden merged commit da95c16 into main Nov 5, 2026
0 of 2 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