This documentation is a work in progress.
Migrate Config Files
- config/authentication.yml – has a new structure with a different section for each rails environment. Edit your authentication particulars to incorporate this new structure. An example is found in config/authentication.yml.example.
- config/controlled_vocabulary.yml – should be copied from R5 to R6 to support data migrations
Dump r5 database (mysql on pawpaw)
Load to r6 database (sqlite locally)
Sqllite3 doesn't like mysql dump files so a transformation script needs to be run on it. Download https://raw.githubusercontent.com/dumblob/mysql2sqlite/master/mysql2sqlite, make it executable, and run it on the dump file.
SSH into your r6 box, wipeout the database, and load the sqlite dump into your dbconsole.
".read" returns "memory", which is good.
Add yourself back in as administrator. --might not need this anymore
Migrate Fedora Objects
SSH tunnel or open up your fedora3 server to your new Avalon app:
keep the ssh mirror running in another tab as you do the next steps.
Setup config/fedora3.yml in your Avalon 6 app
The fedora3.yml should work without change, but if you do have trouble, here's an example fedora3.yml for the avalon demo server.
Run the migration! You can watch it run on your target avalon by going to <you avalon url>/admin/migration_report
After this command is finished, look through the report and see which items have failed and troubleshoot using the errors listed.
Migrate Database Tables