Add flyway as a dependency to your project. Alter your heartbeat table by adding a new autoincrement id column to it, alter it in a way that all the stored records are remaining in the table on the production environment. Use the flywaydb to proceed with the migration.
Database Migration On Production Environment
Create a database migration using flyway
Technical Requirements
Add flyway as a dependency to your project. Alter your heartbeat table by adding a new autoincrement id column to it, alter it in a way that all the stored records are remaining in the table on the production environment. Use the flywaydb to proceed with the migration.