The database migrations are growing with TANF application and some of the changes in later migrations are only to revert the changes in previous migrations which could be squashed. This will also decrease fresh application creation.
Additionally, there are initial instance data creations such as creating user groups that are added to migrations instead of using django fixtures.
Acceptance Criteria:Create a list of functional outcomes that must be achieved to complete this issue
[ ] Migrations that are for changing models are removed
[ ] Migrations are quashed together with no unnecessary logic in them
[ ] Initial data are only added using Django fixtures in either JSON or XML format
[ ] Testing Checklist has been run and all tests pass
[ ] README is updated, if necessary
Tasks:
[ ] Go over all DB migrations and mark up all migrations for changing models
[ ] Create a migration that matches the latest models
[ ] Use squash command to squash the migrations and compare your result in previous step to the output from squash command, and resolve any discrepancies
[ ] Remove initial data addition logic and move it to a django fixture file
[ ] Add the logic for running django fixtures both for local environment and for remote app for initial deployement
[ ] Run Testing Checklist and confirm all tests pass
Notes:Add additional useful information, such as related issues and functionality that isn't covered by this specific issue, and other considerations that will be helpful for anyone reading this
Note 1
Note 2
Note 3
Supporting Documentation:Please include any relevant log snippets/files/screen shots
Doc 1
Doc 2
Open Questions:Please include any questions or decisions that must be made before beginning work or to confidently call this issue complete
Description:
The database migrations are growing with TANF application and some of the changes in later migrations are only to revert the changes in previous migrations which could be squashed. This will also decrease fresh application creation.
Additionally, there are initial instance data creations such as creating user groups that are added to migrations instead of using django fixtures.
Acceptance Criteria: Create a list of functional outcomes that must be achieved to complete this issue
Tasks:
Notes: Add additional useful information, such as related issues and functionality that isn't covered by this specific issue, and other considerations that will be helpful for anyone reading this
Supporting Documentation: Please include any relevant log snippets/files/screen shots
Open Questions: Please include any questions or decisions that must be made before beginning work or to confidently call this issue complete