0% found this document useful (0 votes)
19 views4 pages

Flyway For DB Migration (8.4)

The document discusses the risks associated with using Hibernate's ddl-auto update in production, including unpredictable schema changes and potential data loss. It advocates for using Flyway for database migration, highlighting its benefits such as structured schema management, automated migration script execution, and seamless integration with Spring Boot. This approach allows developers to prioritize feature development over migration management.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views4 pages

Flyway For DB Migration (8.4)

The document discusses the risks associated with using Hibernate's ddl-auto update in production, including unpredictable schema changes and potential data loss. It advocates for using Flyway for database migration, highlighting its benefits such as structured schema management, automated migration script execution, and seamless integration with Spring Boot. This approach allows developers to prioritize feature development over migration management.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Deployment

Using Flyway for Database


Migration
Hibernate.ddl-auto=update in Production:
• Unpredictable Schema Changes:
Renaming a column in an entity class may result in the creation of a new column in
the database rather than renaming the existing one, leading to potential data loss
or inconsistency.

• Data Loss Risk:


Removing an entity might cause Hibernate to drop the column or table, which could
remove important production data.

• Lack of Control and Irreversible


Spring Boot + Flyway
Why use Flyway:

• Flyway offers structured database schema management and


version control.
• It automates migration script execution and maintains a
version history for seamless migrations across
environments.
• Integration with Spring Boot streamlines deployment,
allowing developers to focus on feature development rather
than migration management.
.

You might also like