forked from ucfopen/Materia
-
Notifications
You must be signed in to change notification settings - Fork 4
DB Migrations Test Procedue
Brandon Stull edited this page May 10, 2024
·
6 revisions
-
log_activityis MyISAM, rest are InnoDB - ForeignKeys to Django
Usermodel without copying over from old first will fail.
- Start from a completely empty database
- Import
materia_qa_full.sqlvia SequelAce - Migrate everything except
coreand fake the initialcoremigration, changelog_activityengine from MyISAM to InnoDB, addidcolumns to tables that previously lacked primary keys, and remove theuser_metatable's compound primary key:./run.sh python manage.py fake_current_db
- Run the copy users to Django migration
./run.sh python manage.py migrate core 0002-
./run.sh python manage.py showmigrations(confirmcoremigrated to 0002)
- Run the rest of the migrations
./run.sh python manage.py migrate core