We have many entities in our system with similar names. When I use the hibernate plugin to generate an initial schema (using the diffDatabaseToChangeLog command) I get duplicate constraint names. For instance, given entities ChargeHeader and ChargeHeaderSent I get this:
<addPrimaryKey columnNames=“id”
Obviously this fails when I try to update the database with these changesets (ORA-02264: name already used by an existing constraint). I also wonder why there is no flag for the column tag that would indicate which column is a primary key, rather than having all these addPrimaryKey tags. That would avoid this duplicate name problem entirely.
Thanks,
Larry Kline
-
Learn
-
Resources
-
Free Tools
OSS Risk Scanner Database DevOps Risk AssessmentCheat Sheets
Snowflake + Liquibase Databricks + Liquibase -
eBooks
6 Liquibase Community Risks & How to Avoid Guide: SOC 2 Compliance at the Database Layer Guide: Quantify the Value of Liquibase Secure -
Comparison Guides
Liquibase vs. Flyway Liquibase vs. Bytebase Liquibase Community vs Liquibase Secure
-
- Quickstart
- Get Started
- Documentation
- University
-
Resources
- Connect
- Contribute
- Join
- Blog