Make paver update_db run against both LMS and Studio models

This commit is contained in:
Calen Pennington
2014-12-19 11:56:38 -05:00
parent 526bc9637b
commit 519b0f5e14

View File

@@ -156,8 +156,8 @@ def update_db():
Runs syncdb and then migrate.
"""
settings = getattr(options, 'settings', DEFAULT_SETTINGS)
sh(django_cmd('lms', settings, 'syncdb', '--traceback', '--pythonpath=.'))
sh(django_cmd('lms', settings, 'migrate', '--traceback', '--pythonpath=.'))
for system in ('lms', 'cms'):
sh(django_cmd(system, settings, 'syncdb', '--migrate', '--traceback', '--pythonpath=.'))
@task