From 4ae4e25f5c03947d14ae5e921435c9aff716862c Mon Sep 17 00:00:00 2001 From: Feanil Patel Date: Mon, 13 Jul 2015 13:39:06 -0400 Subject: [PATCH] Update student migration 0035 to add a dependency. This migration instantiates the modulestore which is now dependent the xblock_django database config settings. So the initial migration for that has to run before this migration. --- common/djangoapps/student/migrations/0035_access_roles.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/common/djangoapps/student/migrations/0035_access_roles.py b/common/djangoapps/student/migrations/0035_access_roles.py index a29679bf4c..bf7bec2dc6 100644 --- a/common/djangoapps/student/migrations/0035_access_roles.py +++ b/common/djangoapps/student/migrations/0035_access_roles.py @@ -20,6 +20,11 @@ class Migration(DataMigration): Converts course_creator, instructor_, staff_, and betatestuser_ to new table """ + # Because we instantiate the module store and the modulestore needs this config table to exist. + depends_on = ( + ("xblock_django", "0001_initial"), + ) + GROUP_ENTRY_RE = re.compile(r'(?Pstaff|instructor|beta_testers|course_creator_group)_?(?P.*)') def forwards(self, orm):