Skip to content

Database Migrations (Production Stack) | (Developer Stack)

echanna edited this page Oct 28, 2014 · 1 revision

As updates from version to version take place, the database structure for the LMS and CMS can change, leaving us with an unexpected 500 internal server error. It may be necessary to perform database migrations to reflect the change in the database requirements for the LMS and CMS application. To do so run migrations. First change to the /edx/app/edxapp/edx-platform directory to use manage.py . Then perform migrations:

LMS:

  • sudo -u www-data /edx/bin/python.edxapp ./manage.py lms syncdb --migrate --settings aws

CMS:

  • sudo -u www-data /edx/bin/python.edxapp ./manage.py cms syncdb --migrate --settings aws

Clone this wiki locally