Skip to content

Include referenced schemas & update deps#43

Merged
scoop1120 merged 4 commits intomainfrom
fix-sql-template-literal
Mar 3, 2026
Merged

Include referenced schemas & update deps#43
scoop1120 merged 4 commits intomainfrom
fix-sql-template-literal

Conversation

@scoop1120
Copy link
Copy Markdown
Contributor

Collect non-public schemas referenced by table relations and ensure scope inference includes all modeled schemas.

  • libs/exo-sql: DatabaseSpec::required_schemas now returns a HashSet and includes schemas referenced by column.reference_specs so cross-schema relations (e.g. public -> other_schema) are visible to verification/migrations.
  • libs/exo-sql: MigrationScopeMatches::from_specs_schemas now infers schemas from all tables, referenced foreign_table schemas, and enums (not just managed tables), and preserves insertion of the public schema when required.
  • Workspace version bumped in Cargo.toml and Cargo.lock regenerated with multiple dependency version bumps and additions (various crates updated, including reqwest, nix, plain, and others).

These changes make schema scope detection more accurate for migrations and bring dependency updates from a cargo update/regeneration.

Collect non-public schemas referenced by table relations and ensure scope inference includes all modeled schemas.

- libs/exo-sql: DatabaseSpec::required_schemas now returns a HashSet and includes schemas referenced by column.reference_specs so cross-schema relations (e.g. public -> other_schema) are visible to verification/migrations.
- libs/exo-sql: MigrationScopeMatches::from_specs_schemas now infers schemas from all tables, referenced foreign_table schemas, and enums (not just managed tables), and preserves insertion of the public schema when required.
- Workspace version bumped in Cargo.toml and Cargo.lock regenerated with multiple dependency version bumps and additions (various crates updated, including reqwest, nix, plain, and others).

These changes make schema scope detection more accurate for migrations and bring dependency updates from a cargo update/regeneration.
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Mar 3, 2026

Version bump detected: 0.30.40.30.5

@scoop1120 scoop1120 merged commit 77f1ef8 into main Mar 3, 2026
7 checks passed
@scoop1120 scoop1120 deleted the fix-sql-template-literal branch March 3, 2026 07:29
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