Repository navigation
feat: read schema from file lists and migration directories - #41
Merged
omer-cengel merged 2 commits intoSep 27, 2026
Merged
Conversation
omer-cengel
deleted the
feature/schema-files-and-migration-directories
branch
September 27, 2026 00:27
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
sql[].schemanow accepts a list of files and directories in addition to a single file, so a query group can read the schema from an existing Flyway-style migration directory instead of a hand-maintained snapshot. Directory contents are read in a deterministic order that matches Flyway versioned migrations, each file is parsed on its own, and failures name the file or directory responsible.Changes
sql[].schemais either one path or a non-empty ordered list of paths, each resolved against the configuration file's directory. The single-path form and its diagnostics are unchanged; an empty list and a blank or wrong-typed listed path are rejected with the element named..sqlfiles (case-sensitive, non-recursive), expanded in place in the list. VersionedV<version>__<description>.sqlfiles come first, compared part by part as numbers (V1,V1_1,V2,V10), followed by the remaining.sqlfiles by name;U<version>__...undo files are ignored. The order does not depend on filesystem listing order..sqlfiles, and an unreadable directory each fail with a one-line message naming the directory, before any output is written.Scope and non-goals
CREATE TABLEstatements are accepted, as before; no new statements or column types are supported, and a table defined in more than one file is not merged.ALTER/DROPschema evolution, recursive directory scanning, glob patterns, Flyway placeholders, configurable file-name prefixes, and repeatable-migration semantics are not supported.queriesfield is unchanged.