Skip to content

Instantly share code, notes, and snippets.

@natea
Created April 2, 2015 19:10
Show Gist options
  • Save natea/4ca9e4fd757fc5553d02 to your computer and use it in GitHub Desktop.
Save natea/4ca9e4fd757fc5553d02 to your computer and use it in GitHub Desktop.
edxapp@precise64:~/edx-platform$ python manage.py cms --settings=devstack migratepython manage.py cms --settings=devstack migrate^C
edxapp@precise64:~/edx-platform$ python manage.py cms --settings=devstack migrate
Traceback (most recent call last):
File "manage.py", line 116, in <module>
execute_from_command_line([sys.argv[0]] + django_args)
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 443, in execute_from_command_line
utility.execute()
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 382, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/management/base.py", line 196, in run_from_argv
self.execute(*args, **options.__dict__)
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/management/base.py", line 232, in execute
output = self.handle(*args, **options)
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/south/management/commands/migrate.py", line 108, in handle
ignore_ghosts = ignore_ghosts,
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/south/migration/__init__.py", line 193, in migrate_app
applied_all = check_migration_histories(applied_all, delete_ghosts, ignore_ghosts)
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/south/migration/__init__.py", line 88, in check_migration_histories
raise exceptions.GhostMigrations(ghosts)
south.exceptions.GhostMigrations:
! These migrations are in the database but not on disk:
<student: 0043_auto__add_linkedinaddtoprofileconfiguration>
<student: 0044_rename_linkedin_config_field>
<embargo: 0002_add_country_access_models>
<embargo: 0003_add_countries>
<embargo: 0004_migrate_embargo_config>
<embargo: 0005_add_courseaccessrulehistory>
! I'm not trusting myself; either fix this yourself by fiddling
! with the south_migrationhistory table, or pass --delete-ghost-migrations
! to South to have it delete ALL of these records (this may not be good).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment