[p2pu-dev] Problems with migrations

Jessica Ledbetter jessica at jessicaledbetter.com
Tue Aug 16 23:59:21 UTC 2011


Tried sh/syncdb but still missing lernanta.richtext_embeddedurl

Tried just migrating just that app. And there are 0001_initial and
0002_auto__add_embeddedurl under richtext/migrations which matches github.
So I look up-to-date.

(lernanta)jledbetter at ubuntu:~/projects/lernanta/lernanta$ ./manage.py
migrate richtext
Skipping creation of NoticeTypes as notification app not found
Traceback (most recent call last):
  File "./manage.py", line 26, in <module>
    execute_manager(settings)
  File
"/home/jledbetter/Envs/lernanta/lib/python2.6/site-packages/django/core/management/__init__.py",
line 438, in execute_manager
    utility.execute()
  File
"/home/jledbetter/Envs/lernanta/lib/python2.6/site-packages/django/core/management/__init__.py",
line 379, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File
"/home/jledbetter/Envs/lernanta/lib/python2.6/site-packages/django/core/management/base.py",
line 191, in run_from_argv
    self.execute(*args, **options.__dict__)
  File
"/home/jledbetter/Envs/lernanta/lib/python2.6/site-packages/django/core/management/base.py",
line 220, in execute
    output = self.handle(*args, **options)
  File
"/home/jledbetter/Envs/lernanta/lib/python2.6/site-packages/south/management/commands/migrate.py",
line 105, in handle
    ignore_ghosts = ignore_ghosts,
  File
"/home/jledbetter/Envs/lernanta/lib/python2.6/site-packages/south/migration/__init__.py",
line 171, in migrate_app
    applied = check_migration_histories(applied, delete_ghosts,
ignore_ghosts)
  File
"/home/jledbetter/Envs/lernanta/lib/python2.6/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:
    <dashboard: 0002_auto__chg_field_feedentry_created_on>
    <dashboard: 0002_auto__drop_feedentry>
 ! 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).


Checked with mysql and sure enough it's not there.

Ideas? I don't want to drop my data cause it's important for the work I'm in
the middle of :)


-- 
Jessica Ledbetter
http://jessicaledbetter.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.p2pu.org/pipermail/p2pu-dev/attachments/20110816/2c845b84/attachment.html>


More information about the p2pu-dev mailing list