pgschema icon indicating copy to clipboard operation
pgschema copied to clipboard

Add [constraints] section to .pgschemaignore or to include a parameter to separate the creation of tables from the constraints.

Open RicardoBorgesGO opened this issue 6 months ago • 0 comments

I have a scenario where the system is separated into large modules, each module has a separate schema, but there are foreign keys between these schemas, making it impossible to use pgschema for migrations.

One way to solve this would be to separate the table creation step from the constraint creation step, or to place the constraints in the .pgschemaignore file, where I would disable it initially and enable it on a second run.

RicardoBorgesGO avatar May 12 '26 13:05 RicardoBorgesGO