Closed JinkiJung closed 4 years ago
Thanks for the PR @JinkiJung! Good that you made a section about setting up the database! Importing the content from create-tables.sql and create-mc-org.sql should not be done from the setup script though, as it will make the execution of the program fail the first time it starts. The reason for this is that flywaydb handles creation and migration of tables when the program starts, and if the tables already exists on the first run flywaydb will fail. Importing the content from create-mc-org.sql should only be done after the first execution as described in the section "Putting everything together".
Thank you @oliverhaagh ! I will apply your valuable comments to the documents and the setup-db.sh. 👍