Created a new spring boot profile for Heroku environment so that Flyway migrations only run on heroku and the default auto-ddl is used in development
Added student_perm column to Tutor entity and checked the following:
The new column was successfully created when running locally, when no migrations ran (correct auto-ddl behavior)
The new broke the app on Heroku without a migration
The Heroku apps works correctly with the migration (the correct column is now present in the schema
Note:
There are two migrations in this PR because I accidentally named the new col perm instead of student_perm. There's a way to undo migrations in Flyway, but it seems like it's generally recommended to move the db forward rather than undo a version if possible.
I only added the new perm column to the entity- I didn't add any additional in-app support for the field (so it's not being used at all rn). Those changes should be made in a separate PR
student_perm
column to Tutor entity and checked the following:Note:
perm
instead ofstudent_perm
. There's a way to undo migrations in Flyway, but it seems like it's generally recommended to move the db forward rather than undo a version if possible.