Skip to content

Instantly share code, notes, and snippets.

@byroncorrales
Created April 20, 2012 03:29
Show Gist options
  • Save byroncorrales/2425681 to your computer and use it in GitHub Desktop.
Save byroncorrales/2425681 to your computer and use it in GitHub Desktop.
[21:26:23] bcorrales:agualiweb git:(master) $ python manage.py migrate --all
Running migrations for socialregistration:
- Nothing to migrate.
- Loading initial data for socialregistration.
No fixtures found.
Running migrations for blog:
- Migrating forwards to 0009_auto__add_field_post_autor.
> blog:0006_auto__add_autor
> blog:0007_auto__add_field_autor_avatar__chg_field_post_author
> blog:0008_auto__del_field_post_author
Traceback (most recent call last):
File "manage.py", line 14, in <module>
execute_manager(settings)
File "/Library/Python/2.7/site-packages/django/core/management/__init__.py", line 438, in execute_manager
utility.execute()
File "/Library/Python/2.7/site-packages/django/core/management/__init__.py", line 379, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/Library/Python/2.7/site-packages/django/core/management/base.py", line 191, in run_from_argv
self.execute(*args, **options.__dict__)
File "/Library/Python/2.7/site-packages/django/core/management/base.py", line 220, in execute
output = self.handle(*args, **options)
File "/Library/Python/2.7/site-packages/south/management/commands/migrate.py", line 105, in handle
ignore_ghosts = ignore_ghosts,
File "/Library/Python/2.7/site-packages/south/migration/__init__.py", line 191, in migrate_app
success = migrator.migrate_many(target, workplan, database)
File "/Library/Python/2.7/site-packages/south/migration/migrators.py", line 221, in migrate_many
result = migrator.__class__.migrate_many(migrator, target, migrations, database)
File "/Library/Python/2.7/site-packages/south/migration/migrators.py", line 292, in migrate_many
result = self.migrate(migration, database)
File "/Library/Python/2.7/site-packages/south/migration/migrators.py", line 125, in migrate
result = self.run(migration)
File "/Library/Python/2.7/site-packages/south/migration/migrators.py", line 98, in run
dry_run.run_migration(migration)
File "/Library/Python/2.7/site-packages/south/migration/migrators.py", line 177, in run_migration
self._run_migration(migration)
File "/Library/Python/2.7/site-packages/south/migration/migrators.py", line 167, in _run_migration
raise exceptions.FailedDryRun(migration, sys.exc_info())
south.exceptions.FailedDryRun: ! Error found during dry run of '0008_auto__del_field_post_author'! Aborting.
Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/south/migration/migrators.py", line 164, in _run_migration
migration_function()
File "/Library/Python/2.7/site-packages/south/migration/migrators.py", line 57, in <lambda>
return (lambda: direction(orm))
File "/Users/bcorrales/code/django/personal/aguali/agualiweb/../agualiweb/basic/blog/migrations/0008_auto__del_field_post_author.py", line 12, in forwards
db.delete_column('blog_posts', 'author_id')
File "/Library/Python/2.7/site-packages/south/db/mysql.py", line 94, in delete_column
assert result == 1 # We should only have one result, otherwise there's Issues
AssertionError
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment