Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding or modifying data structures that change the SQL is really tricky #76

Open
mvsjober opened this issue Nov 10, 2016 · 0 comments
Open

Comments

@mvsjober
Copy link
Member

mvsjober commented Nov 10, 2016

The current procedure:

  • add the new code according to these complicated rules - don't add any tests at this point
  • compile it with make to see that it compiles
  • make updateSchema
  • check that the schema changes looks reasonable with e.g. git diff src/main/resources/db/changelog/db.changelog-master.xml
  • run e.g. make test to generate the actual new SQL schema in the database
  • now you can write your tests
  • make test

We moved to SQL in order to be able to have a simple embedded database. Using mongodb was much easier for the developer. We could move back to mongodb if we e.g. standardised on using Docker for easy installations?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant