Skip to content
Ameen Abozaid
Planned lessonJNR-033-L06

Demo: baselining Shop with Flyway and adding V2

  • Lesson 6 of 6
  • Junior
On This Lesson 3 topics

This lesson is planned. The outline below lists the topics it will cover. The full lesson has not been published yet.

In this lesson

convert Shop's manual schema to Flyway; prepares JNR-033-LAB1.

Draft outline details

Step by step

  1. Add Flyway; copy the current schema.sql into V1__baseline.sql.
  2. Set spring.jpa.hibernate.ddl-auto=validate.
  3. Start on a fresh empty database; show the history table.
  4. For the existing database, enable baseline on migrate with baseline version 1 and start; V1 is skipped.
  5. Planned mistake: edit V1 after it ran; show the checksum error, revert, and add V2__add_sku.sql with a backfill instead.
  6. Compare both databases: same state.

Practice

Apply this lesson with the module's lab, exercises and quiz.

Lab and exercises Quiz

Marking a lesson complete is optional and you can undo it any time. Your progress stays in this browser.

Type to search levels, phases, modules and lessons.