Compares the structs with the catalog and writes the SQL that would bring the migrated schema to what the structs say. See docs/postgres/diff.md for what it covers.
- catalog: the migrated schema.
- description: the structs and enums read from the schema file.
propose_migration :: (
catalog: Catalog,
description: Schema_Description
) -> (Migration_Proposal, problem: string)
Compares the structs with the catalog and writes the SQL that would bring the migrated schema to what the structs say. See docs/postgres/diff.md for what it covers.
Parameters
- catalog: Catalog
- the migrated schema.
- description: Schema_Description
- the structs and enums read from the schema file.
Returns
- problem: string