Django CI template: Do not run makemigrations in CI

What does this MR do and why?

makemigrations should be ran as part of development, and migration files comitted to git. Only migrate should be ran as part of test/deployment.

References

You should think of migrations as a version control system for your database schema. makemigrations is responsible for packaging up your model changes into individual migration files - analogous to commits - and migrate is responsible for applying those to your database.

The migration files for each app live in a “migrations” directory inside of that app, and are designed to be committed to, and distributed as part of, its codebase. You should be making them once on your development machine and then running the same migrations on your colleagues’ machines, your staging machines, and eventually your production machines.

Edited by 🤖 GitLab Bot 🤖

Merge request reports

Loading