You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the XmlGenerator, constraints of types PRIMARY KEY, FOREIGN KEY, UNIQUE, and CHECK are all generated under the "table_constraints" section. This results in a lot of clashes in Git for my team since Postgres randomly generates the name of NOT NULL constraints (unless you explicitly specify them).
It'd be nice if there was not only a flag to disable generating these constraints, but also a way to switch off specific kinds (ie. the four given above).
Versions:
jOOQ: 3.11.0
Java: 1.8
Database (include vendor): Postgres 9.3
OS: MacOS
JDBC Driver (include name if inofficial driver): 42.2.2
The text was updated successfully, but these errors were encountered:
It should definitely be possible to exclude those object types. Also, the <includes/> / <excludes/> mechanism could be extended to also match constraint names.
Note that while NOT NULL constraints are reported as check constraints, in many databases (including PostgreSQL: https://dba.stackexchange.com/q/158499/2512), they're optimised check constraints, so I wouldn't name them explicitly just to work around this flaw.
When using the XmlGenerator, constraints of types PRIMARY KEY, FOREIGN KEY, UNIQUE, and CHECK are all generated under the "table_constraints" section. This results in a lot of clashes in Git for my team since Postgres randomly generates the name of NOT NULL constraints (unless you explicitly specify them).
It'd be nice if there was not only a flag to disable generating these constraints, but also a way to switch off specific kinds (ie. the four given above).
Versions:
The text was updated successfully, but these errors were encountered: