Advertisement
Guest User

Untitled

a guest
Jul 24th, 2014
244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.27 KB | None | 0 0
  1. Running migrations for pages:
  2. - Migrating forwards to 0010_add_field_PageItem_refers_to_clone.
  3. > pages:0009_auto__add_field_pageitem_deleted__add_field_subpage_deleted
  4. FATAL ERROR - The following SQL query failed: ALTER TABLE `pages_pageitem` ADD COLUMN `deleted` bool NOT NULL DEFAULT False;
  5. The error was: (1060, "Duplicate column name 'deleted'")
  6. ! Error found during real run of migration! Aborting.
  7.  
  8. ! Since you have a database that does not support running
  9. ! schema-altering statements in transactions, we have had
  10. ! to leave it in an interim state between migrations.
  11.  
  12. ! You *might* be able to recover with: - no dry run output for delete_foreign_key() due to dynamic DDL, sorry
  13. = ALTER TABLE `pages_pageitem` DROP COLUMN `deleted` CASCADE; []
  14. - no dry run output for delete_foreign_key() due to dynamic DDL, sorry
  15. = ALTER TABLE `pages_subpage` DROP COLUMN `deleted` CASCADE; []
  16.  
  17. ! The South developers regret this has happened, and would
  18. ! like to gently persuade you to consider a slightly
  19. ! easier-to-deal-with DBMS (one that supports DDL transactions)
  20. ! NOTE: The error which caused the migration to fail is further up.
  21. Error in migration: pages:0009_auto__add_field_pageitem_deleted__add_field_subpage_deleted
  22. Traceback (most recent call last):
  23. File "./manage.py", line 10, in <module>
  24. execute_from_command_line(sys.argv)
  25. File "/home/ubuntu/virtualenvs/app_tophat/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 399, in execute_from_command_line
  26. utility.execute()
  27. File "/home/ubuntu/virtualenvs/app_tophat/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 392, in execute
  28. self.fetch_command(subcommand).run_from_argv(self.argv)
  29. File "/home/ubuntu/virtualenvs/app_tophat/local/lib/python2.7/site-packages/django/core/management/base.py", line 242, in run_from_argv
  30. self.execute(*args, **options.__dict__)
  31. File "/home/ubuntu/virtualenvs/app_tophat/local/lib/python2.7/site-packages/django/core/management/base.py", line 285, in execute
  32. output = self.handle(*args, **options)
  33. File "/home/ubuntu/virtualenvs/app_tophat/local/lib/python2.7/site-packages/south/management/commands/migrate.py", line 111, in handle
  34. ignore_ghosts = ignore_ghosts,
  35. File "/home/ubuntu/virtualenvs/app_tophat/local/lib/python2.7/site-packages/south/migration/__init__.py", line 220, in migrate_app
  36. success = migrator.migrate_many(target, workplan, database)
  37. File "/home/ubuntu/virtualenvs/app_tophat/local/lib/python2.7/site-packages/south/migration/migrators.py", line 230, in migrate_many
  38. result = migrator.__class__.migrate_many(migrator, target, migrations, database)
  39. File "/home/ubuntu/virtualenvs/app_tophat/local/lib/python2.7/site-packages/south/migration/migrators.py", line 305, in migrate_many
  40. result = self.migrate(migration, database)
  41. File "/home/ubuntu/virtualenvs/app_tophat/local/lib/python2.7/site-packages/south/migration/migrators.py", line 134, in migrate
  42. result = self.run(migration, database)
  43. File "/home/ubuntu/virtualenvs/app_tophat/local/lib/python2.7/site-packages/south/migration/migrators.py", line 115, in run
  44. return self.run_migration(migration, database)
  45. File "/home/ubuntu/virtualenvs/app_tophat/local/lib/python2.7/site-packages/south/migration/migrators.py", line 85, in run_migration
  46. migration_function()
  47. File "/home/ubuntu/virtualenvs/app_tophat/local/lib/python2.7/site-packages/south/migration/migrators.py", line 61, in <lambda>
  48. return (lambda: direction(orm))
  49. File "/var/www/app_tophat/edumacation/pages/migrations/0009_auto__add_field_pageitem_deleted__add_field_subpage_deleted.py", line 14, in forwards
  50. keep_default=False)
  51. File "/home/ubuntu/virtualenvs/app_tophat/local/lib/python2.7/site-packages/south/db/generic.py", line 47, in _cache_clear
  52. return func(self, table, *args, **opts)
  53. File "/home/ubuntu/virtualenvs/app_tophat/local/lib/python2.7/site-packages/south/db/generic.py", line 418, in add_column
  54. self.execute(sql)
  55. File "/home/ubuntu/virtualenvs/app_tophat/local/lib/python2.7/site-packages/south/db/generic.py", line 282, in execute
  56. cursor.execute(sql, params)
  57. File "/home/ubuntu/virtualenvs/app_tophat/local/lib/python2.7/site-packages/django/db/backends/util.py", line 53, in execute
  58. return self.cursor.execute(sql, params)
  59. File "/home/ubuntu/virtualenvs/app_tophat/local/lib/python2.7/site-packages/django/db/utils.py", line 99, in __exit__
  60. six.reraise(dj_exc_type, dj_exc_value, traceback)
  61. File "/home/ubuntu/virtualenvs/app_tophat/local/lib/python2.7/site-packages/django/db/backends/util.py", line 53, in execute
  62. return self.cursor.execute(sql, params)
  63. File "/home/ubuntu/virtualenvs/app_tophat/local/lib/python2.7/site-packages/django/db/backends/mysql/base.py", line 124, in execute
  64. return self.cursor.execute(query, args)
  65. File "/home/ubuntu/virtualenvs/app_tophat/local/lib/python2.7/site-packages/MySQLdb/cursors.py", line 174, in execute
  66. self.errorhandler(self, exc, value)
  67. File "/home/ubuntu/virtualenvs/app_tophat/local/lib/python2.7/site-packages/MySQLdb/connections.py", line 36, in defaulterrorhandler
  68. raise errorclass, errorvalue
  69. django.db.utils.OperationalError: (1060, "Duplicate column name 'deleted'")
  70. (app_tophat)ubuntu@DEV-i-dd774cf7 /var/www/app_tophat $
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement