Generate CREATE SCHEMA IF NOT EXISTS SQL for the given schema name.
Generate an ALTER TABLE migration for schema evolution. Diffs desired state vs existing state and produces incremental DDL.
Desired table definition + current DB state.
Target database platform.
MJ version string.
Directory prefix for the migration file name.
Identifies the calling subsystem.
Generate a CREATE TABLE migration from a generic TableDefinition.
Includes CREATE SCHEMA IF NOT EXISTS guard, followed by CREATE TABLE. Returns migration SQL + Flyway-compatible file name.
Platform-agnostic table definition.
Target database platform.
MJ version string (e.g. "5.10") embedded in file name.
Directory prefix for the migration file name.
Identifies the calling subsystem (e.g. "Integration", "Agent").
Validate a TableDefinition and return the result without throwing.
Platform-aware DDL orchestrator. Pure function: input → SQL + file metadata. Never touches the database — all execution is handled by the caller.