Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Running migrations for pages:
- - Migrating forwards to 0010_add_field_PageItem_refers_to_clone.
- > pages:0009_auto__add_field_pageitem_deleted__add_field_subpage_deleted
- FATAL ERROR - The following SQL query failed: ALTER TABLE `pages_pageitem` ADD COLUMN `deleted` bool NOT NULL DEFAULT False;
- The error was: (1060, "Duplicate column name 'deleted'")
- ! Error found during real run of migration! Aborting.
- ! Since you have a database that does not support running
- ! schema-altering statements in transactions, we have had
- ! to leave it in an interim state between migrations.
- ! You *might* be able to recover with: - no dry run output for delete_foreign_key() due to dynamic DDL, sorry
- = ALTER TABLE `pages_pageitem` DROP COLUMN `deleted` CASCADE; []
- - no dry run output for delete_foreign_key() due to dynamic DDL, sorry
- = ALTER TABLE `pages_subpage` DROP COLUMN `deleted` CASCADE; []
- ! The South developers regret this has happened, and would
- ! like to gently persuade you to consider a slightly
- ! easier-to-deal-with DBMS (one that supports DDL transactions)
- ! NOTE: The error which caused the migration to fail is further up.
- Error in migration: pages:0009_auto__add_field_pageitem_deleted__add_field_subpage_deleted
- Traceback (most recent call last):
- File "./manage.py", line 10, in <module>
- execute_from_command_line(sys.argv)
- File "/home/ubuntu/virtualenvs/app_tophat/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 399, in execute_from_command_line
- utility.execute()
- File "/home/ubuntu/virtualenvs/app_tophat/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 392, in execute
- self.fetch_command(subcommand).run_from_argv(self.argv)
- File "/home/ubuntu/virtualenvs/app_tophat/local/lib/python2.7/site-packages/django/core/management/base.py", line 242, in run_from_argv
- self.execute(*args, **options.__dict__)
- File "/home/ubuntu/virtualenvs/app_tophat/local/lib/python2.7/site-packages/django/core/management/base.py", line 285, in execute
- output = self.handle(*args, **options)
- File "/home/ubuntu/virtualenvs/app_tophat/local/lib/python2.7/site-packages/south/management/commands/migrate.py", line 111, in handle
- ignore_ghosts = ignore_ghosts,
- File "/home/ubuntu/virtualenvs/app_tophat/local/lib/python2.7/site-packages/south/migration/__init__.py", line 220, in migrate_app
- success = migrator.migrate_many(target, workplan, database)
- File "/home/ubuntu/virtualenvs/app_tophat/local/lib/python2.7/site-packages/south/migration/migrators.py", line 230, in migrate_many
- result = migrator.__class__.migrate_many(migrator, target, migrations, database)
- File "/home/ubuntu/virtualenvs/app_tophat/local/lib/python2.7/site-packages/south/migration/migrators.py", line 305, in migrate_many
- result = self.migrate(migration, database)
- File "/home/ubuntu/virtualenvs/app_tophat/local/lib/python2.7/site-packages/south/migration/migrators.py", line 134, in migrate
- result = self.run(migration, database)
- File "/home/ubuntu/virtualenvs/app_tophat/local/lib/python2.7/site-packages/south/migration/migrators.py", line 115, in run
- return self.run_migration(migration, database)
- File "/home/ubuntu/virtualenvs/app_tophat/local/lib/python2.7/site-packages/south/migration/migrators.py", line 85, in run_migration
- migration_function()
- File "/home/ubuntu/virtualenvs/app_tophat/local/lib/python2.7/site-packages/south/migration/migrators.py", line 61, in <lambda>
- return (lambda: direction(orm))
- File "/var/www/app_tophat/edumacation/pages/migrations/0009_auto__add_field_pageitem_deleted__add_field_subpage_deleted.py", line 14, in forwards
- keep_default=False)
- File "/home/ubuntu/virtualenvs/app_tophat/local/lib/python2.7/site-packages/south/db/generic.py", line 47, in _cache_clear
- return func(self, table, *args, **opts)
- File "/home/ubuntu/virtualenvs/app_tophat/local/lib/python2.7/site-packages/south/db/generic.py", line 418, in add_column
- self.execute(sql)
- File "/home/ubuntu/virtualenvs/app_tophat/local/lib/python2.7/site-packages/south/db/generic.py", line 282, in execute
- cursor.execute(sql, params)
- File "/home/ubuntu/virtualenvs/app_tophat/local/lib/python2.7/site-packages/django/db/backends/util.py", line 53, in execute
- return self.cursor.execute(sql, params)
- File "/home/ubuntu/virtualenvs/app_tophat/local/lib/python2.7/site-packages/django/db/utils.py", line 99, in __exit__
- six.reraise(dj_exc_type, dj_exc_value, traceback)
- File "/home/ubuntu/virtualenvs/app_tophat/local/lib/python2.7/site-packages/django/db/backends/util.py", line 53, in execute
- return self.cursor.execute(sql, params)
- File "/home/ubuntu/virtualenvs/app_tophat/local/lib/python2.7/site-packages/django/db/backends/mysql/base.py", line 124, in execute
- return self.cursor.execute(query, args)
- File "/home/ubuntu/virtualenvs/app_tophat/local/lib/python2.7/site-packages/MySQLdb/cursors.py", line 174, in execute
- self.errorhandler(self, exc, value)
- File "/home/ubuntu/virtualenvs/app_tophat/local/lib/python2.7/site-packages/MySQLdb/connections.py", line 36, in defaulterrorhandler
- raise errorclass, errorvalue
- django.db.utils.OperationalError: (1060, "Duplicate column name 'deleted'")
- (app_tophat)ubuntu@DEV-i-dd774cf7 /var/www/app_tophat $
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement