ariga / atlas

Manage your database schema as code
https://atlasgo.io
Apache License 2.0
6.02k stars 269 forks source link

cmd/atlas/internal/migratelint: make linting inspection context-aware #3201

Closed a8m closed 1 month ago

a8m commented 1 month ago

If the connection is scoped to a specific schema, we should use InspectSchema to get the inspected realm. That is because PostgreSQL unsets the search_path when inspecting the entire realm, causing us to lose the schema context and get qualified composite types on inspection.

Fixed https://github.com/ariga/atlas/issues/3200