Closed Andrew-Dickinson closed 3 weeks ago
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.
scripts/import_spreadsheet_dump.sh
Then everywhere that we have a DB, drop all the tables (super destructive option, make sure you have a backup first):
And run the combined migration
Then to get the data back, import from a backup, run the import script, use
scripts/import_spreadsheet_dump.sh
, etc.