Dogwood and Brich 数据库对比
Posted on 2016-04-07(星期四) 00:00 in edx
针对edx平台的升级数据库迁移是重中之重,但往往有很多有些人忽视这方面的问题,导致平台升级出现各种坑。下面针对dogwood和brich两个版本的数据进行对比,希望能给折腾数据的小伙伴一点帮助:
Mysql 数据库对比
-
auth_user表last_login字段dogwood允许为空长度为6,brich不允许null长度为0。
-
auth_userprofile表dogwood比brich多了两个字段:bio和profile_image_uploaded_at; city字段dogwood为null,brich不为null。
-
student_courseenrollment表created字段dogwood长度为6,brich长度为0。
对比如下:
Brich_auth_user
Dogwood_auth_user
Brich_auth_userprofile
Dogwood_auth_userprofile
Brich_student_courseenrollmen
Dogwood_student_courseenrollment
Mongo数据对比
cs_comments_service_development数据库中contents表新版比老版多一个key:context,value:string,并且course_id规则不一样。
Users表中default_sort_key的value不一样,Dogwood为data,Brich为votes。
Brich_mongo:users
Dogwood_mongo:users
Brich:cs_comments_service_development
Dogwood:cs_comments_service_development