do some data fixes before adding foreign key
do some data fixes before adding foreign key

Change-Id: I7cecd24d4382b415e1e4a3d38b907f8a0764d580
Reviewed-on: https://gerrit.instructure.com/29932
Reviewed-by: Rob Orton <7e09c9d3e96378bf549fc283fd6e1e5b7014cc33@instructure.com>
QA-Review: Simon Williams <088e16a1019277b15d58faf0541e11910eb756f6@instructure.com>
Tested-by: Jenkins <d95b56ce41a2e1ac4cecdd398defd7414407cc08@instructure.com>
Product-Review: Cody Cutrer <c4fe2b1d90ef8f2548c8aeabfa633434316f0305@instructure.com>

ShreniiNepal/shrenii_lmp,narigone/canvas,HotChalk/canvas-lms,venturehive/canvas-lms,venturehive/canvas-lms,gbleydon/canvas-lms,sfu/canvas-lms,greyhwndz/canvas-lms,leftplusrightllc/canvas-lms,grahamb/canvas-lms,gbleydon/canvas-lms,dgynn/canvas-lms,skmezanul/canvas-lms,venturehive/canvas-lms,tgroshon/canvas-lms,Jyaasa/canvas-lms,shidao-fm/canvas-lms,wrdsb/canvas-lms,shidao-fm/canvas-lms,juoni/canvas-lms,shidao-fm/canvas-lms,AndranikMarkosyan/lms,sdeleon28/canvas-lms,Jyaasa/canvas-lms,sfu/canvas-lms,HotChalk/canvas-lms,va7map/canvas-lms,utkarshx/canvas-lms,SwinburneOnline/canvas-lms,AndranikMarkosyan/lms,Rvor/canvas-lms,AndranikMarkosyan/lms,whalejasmine/canvas-lms,instructure/canvas-lms,instructure/canvas-lms,eCNAP/CANVAS,efrj/canvas-lms,fronteerio/canvas-lms,greyhwndz/canvas-lms,efrj/canvas-lms,wrdsb/canvas-lms,snehakachroo1/LSI_replica,usmschuck/canvas,roxolan/canvas-lms,kyroskoh/canvas-lms,jay3126/canvas-lms,antoniuslin/canvas-lms,antoniuslin/canvas-lms,kyroskoh/canvas-lms,djbender/canvas-lms,tgroshon/canvas-lms,va7map/canvas-lms,eCNAP/CANVAS,fronteerio/canvas-lms,instructure/canvas-lms,sfu/canvas-lms,Rvor/canvas-lms,sfu/canvas-lms,dgynn/canvas-lms,narigone/canvas,eCNAP/CANVAS,ShreniiNepal/shrenii_lmp,kyroskoh/canvas-lms,Rvor/canvas-lms,snehakachroo1/LSI_replica,juoni/canvas-lms,tgroshon/canvas-lms,djbender/canvas-lms,roxolan/canvas-lms,wrdsb/canvas-lms,wrdsb/canvas-lms,arrivu/arrivu-lms,matematikk-mooc/canvas-lms,fronteerio/canvas-lms,utkarshx/canvas-lms,instructure/canvas-lms,jay3126/canvas-lms,Jyaasa/canvas-lms,leftplusrightllc/canvas-lms,gbleydon/canvas-lms,arrivu/arrivu-lms,wye0220/shindig-canvas,Rvor/canvas-lms,Unow/canvas-lms,sdeleon28/canvas-lms,samuels410/greatlakes-lms,va7map/canvas-lms,whalejasmine/canvas-lms,utkarshx/canvas-lms,dgynn/canvas-lms,roxolan/canvas-lms,arrivu/hoodemo,HotChalk/canvas-lms,instructure/canvas-lms,AndranikMarkosyan/lms,grahamb/canvas-lms,juoni/canvas-lms,efrj/canvas-lms,efrj/canvas-lms,utkarshx/canvas-lms,narigone/canvas,antoniuslin/canvas-lms,skmezanul/canvas-lms,venturehive/canvas-lms,grahamb/canvas-lms,whalejasmine/canvas-lms,matematikk-mooc/canvas-lms,kyroskoh/canvas-lms,sfu/canvas-lms,redconfetti/canvas-lms,grahamb/canvas-lms,skmezanul/canvas-lms,instructure/canvas-lms,sdeleon28/canvas-lms,wye0220/shindig-canvas,arrivu/arrivu-lms,HotChalk/canvas-lms,arrivu/hoodemo,SwinburneOnline/canvas-lms,matematikk-mooc/canvas-lms,samuels410/greatlakes-lms,whalejasmine/canvas-lms,redconfetti/canvas-lms,ShreniiNepal/shrenii_lmp,Jyaasa/canvas-lms,greyhwndz/canvas-lms,tgroshon/canvas-lms,usmschuck/canvas,SwinburneOnline/canvas-lms,leftplusrightllc/canvas-lms,Unow/canvas-lms,va7map/canvas-lms,ShreniiNepal/shrenii_lmp,roxolan/canvas-lms,usmschuck/canvas,snehakachroo1/LSI_replica,eCNAP/CANVAS,sfu/canvas-lms,arrivu/hoodemo,jay3126/canvas-lms,fronteerio/canvas-lms,skmezanul/canvas-lms,narigone/canvas,usmschuck/canvas,djbender/canvas-lms,jay3126/canvas-lms,grahamb/canvas-lms,djbender/canvas-lms,greyhwndz/canvas-lms,shidao-fm/canvas-lms,Unow/canvas-lms,samuels410/greatlakes-lms,sfu/canvas-lms,leftplusrightllc/canvas-lms,sdeleon28/canvas-lms,dgynn/canvas-lms,snehakachroo1/LSI_replica,antoniuslin/canvas-lms,redconfetti/canvas-lms,juoni/canvas-lms,matematikk-mooc/canvas-lms,wye0220/shindig-canvas,redconfetti/canvas-lms,SwinburneOnline/canvas-lms,samuels410/greatlakes-lms,instructure/canvas-lms