Grokking Spring Boot
Vote

0% completed

​

Schema Migrations with Flyway

A developer renamed the field Venue.name to displayName and restarted the booking service. Hibernate was in charge of the tables, on a database stored in a file, and the restart sent one statement.

alter table if exists venue add column display_name varchar(255)

Hibernate compared the entity with the table and added a column. The row then held "Riverside Hall" in the old name column and null in the new display_name column. The service started without an error, and from that moment it read every venue name as null.

.....

.....

.....

Like the course? Get enrolled and start learning!

Reading Progress

0%


Vote for new content