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

Consolidate migrations into single file with thermonuclear option #594

Open
Andrew-Dickinson opened this issue Sep 22, 2024 · 0 comments · May be fixed by #634
Open

Consolidate migrations into single file with thermonuclear option #594

Andrew-Dickinson opened this issue Sep 22, 2024 · 0 comments · May be fixed by #634
Assignees

Comments

@Andrew-Dickinson
Copy link
Member

rm -rf src/meshapi/migrations
python src/manage.py makemigrations

Then everywhere that we have a DB, drop all the tables (super destructive option, make sure you have a backup first):

DROP SCHEMA public CASCADE;
CREATE SCHEMA public;

And run the combined migration

python src/manage.py migrate

Then to get the data back, import from a backup, run the import script, use scripts/import_spreadsheet_dump.sh, etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Blocked
Development

Successfully merging a pull request may close this issue.

1 participant