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.
This commit is contained in:
Feanil Patel
2015-07-13 13:39:06 -04:00
parent e9eefb8bc3
commit 4ae4e25f5c

View File

@@ -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'(?P<role_id>staff|instructor|beta_testers|course_creator_group)_?(?P<course_id_string>.*)')
def forwards(self, orm):