Adjust an existing script
# First, do a full database backup in case stuff breaks. NOTE: script will log to /var/log/allura/allura.log # Initial run: migrate kajiki only (actually everything in project-data-i) allurapaste script /var/local/config/production.ini ../scripts/migrate_project_database.py kajiki # Second test: migrate allura (actually everything in project-data-a) allurapaste script /var/local/config/production.ini ../scripts/migrate_project_database.py allura # Full migration (remaining shards) allurapaste script /var/local/config/production.ini ../scripts/migrate_project_database.py
Diff:
on forge:rc/1585
QA: code-review and run the script (forge/scripts/migrate_project_database.py). Unfortunately it won't do anything, as all our test data has been consolidated into one database already. Instructions for running the script in QA are just like the 'Full Migration' listed in the ticket body.
Diff:
If project is None, I'm not sure we can log using project.shortname?
heh. Good point. Fixed and repushed
Looks good, no errors during the run on a rebuilt sandbox. Setting to validation so it can be closed once SOG runs on production.