migration_generate
Compare old and new CREATE TABLE schemas to generate ALTER TABLE migration statements with both up and down migrations.
Instructions
Compare two schemas (old vs new CREATE TABLE statements) and generate ALTER TABLE migration statements with both up and down migrations.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dialect | No | SQL dialect for migration syntax (default: postgresql) | |
| new_schema | Yes | The new/target schema (CREATE TABLE statements) | |
| old_schema | Yes | The old/current schema (CREATE TABLE statements) |