• Concept
  • Version ยท 6.0
  • Create

Organize changes by object

Last updated: September 29, 2026

A directory tree with a top-level sqlcode directory holding a root changelog, then a directory per schema, and inside each schema a subdirectory per object type such as tables, views, procedures, and functions, each with its own changelog and SQL scripts.

Best practices

A root changelog using include tags, one per schema, each pointing at that schema's own changelog file.
A schema-level changelog using include tags to point at the changelog inside each object-type subdirectory, in the order the objects should be deployed.
A changelog whose changesets each use the sqlFile change type to reference a specific SQL script, with a separate rollback script named for each changeset.

Why the sqlFile recommendation matters

Generate it automatically instead

Reference