{"action":"created","issue":{"url":"https://api.github.com/repos/torchbox/wagtail/issues/1032","labels_url":"https://api.github.com/repos/torchbox/wagtail/issues/1032/labels{/name}","comments_url":"https://api.github.com/repos/torchbox/wagtail/issues/1032/comments","events_url":"https://api.github.com/repos/torchbox/wagtail/issues/1032/events","html_url":"https://github.com/torchbox/wagtail/issues/1032","id":59498014,"number":1032,"title":"MySQL OperationalError: (1093, \"You can't specify target table 'wagtailimages_rendition' for update in FROM clause\")","user":{"login":"AEzzatA","id":2166388,"avatar_url":"https://avatars.githubusercontent.com/u/2166388?v=3","gravatar_id":"","url":"https://api.github.com/users/AEzzatA","html_url":"https://github.com/AEzzatA","followers_url":"https://api.github.com/users/AEzzatA/followers","following_url":"https://api.github.com/users/AEzzatA/following{/other_user}","gists_url":"https://api.github.com/users/AEzzatA/gists{/gist_id}","starred_url":"https://api.github.com/users/AEzzatA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AEzzatA/subscriptions","organizations_url":"https://api.github.com/users/AEzzatA/orgs","repos_url":"https://api.github.com/users/AEzzatA/repos","events_url":"https://api.github.com/users/AEzzatA/events{/privacy}","received_events_url":"https://api.github.com/users/AEzzatA/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-02T15:42:19Z","updated_at":"2015-03-02T17:01:01Z","closed_at":"2015-03-02T16:56:01Z","body":"This is just the fresh install migrations of wagtail==0.8.5 Django==1.7.5 and MySQL  5.6.19-0ubuntu0.14.04.1 and \r\n\r\nKeep in mind this error doesn't happen with neither PostgreSQL nor SQLite.\r\nwhat seems to be wrong here? and how to solve it?\r\n\r\n  Applying wagtailimages.0004_make_focal_point_key_not_nullable...Traceback (most recent call last):\r\n  File \"manage.py\", line 17, in <module>\r\n    execute_from_command_line(sys.argv)\r\n  File \"/home/is7yx/.virtualenvs/lux/local/lib/python2.7/site-packages/django/core/management/__init__.py\", line 385, in execute_from_command_line\r\n    utility.execute()\r\n  File \"/home/is7yx/.virtualenvs/lux/local/lib/python2.7/site-packages/django/core/management/__init__.py\", line 377, in execute\r\n    self.fetch_command(subcommand).run_from_argv(self.argv)\r\n  File \"/home/is7yx/.virtualenvs/lux/local/lib/python2.7/site-packages/django/core/management/base.py\", line 288, in run_from_argv\r\n    self.execute(*args, **options.__dict__)\r\n  File \"/home/is7yx/.virtualenvs/lux/local/lib/python2.7/site-packages/django/core/management/base.py\", line 338, in execute\r\n    output = self.handle(*args, **options)\r\n  File \"/home/is7yx/.virtualenvs/lux/local/lib/python2.7/site-packages/django/core/management/base.py\", line 533, in handle\r\n    return self.handle_noargs(**options)\r\n  File \"/home/is7yx/.virtualenvs/lux/local/lib/python2.7/site-packages/django/core/management/commands/syncdb.py\", line 27, in handle_noargs\r\n    call_command(\"migrate\", **options)\r\n  File \"/home/is7yx/.virtualenvs/lux/local/lib/python2.7/site-packages/django/core/management/__init__.py\", line 115, in call_command\r\n    return klass.execute(*args, **defaults)\r\n  File \"/home/is7yx/.virtualenvs/lux/local/lib/python2.7/site-packages/django/core/management/base.py\", line 338, in execute\r\n    output = self.handle(*args, **options)\r\n  File \"/home/is7yx/.virtualenvs/lux/local/lib/python2.7/site-packages/django/core/management/commands/migrate.py\", line 161, in handle\r\n    executor.migrate(targets, plan, fake=options.get(\"fake\", False))\r\n  File \"/home/is7yx/.virtualenvs/lux/local/lib/python2.7/site-packages/django/db/migrations/executor.py\", line 68, in migrate\r\n    self.apply_migration(migration, fake=fake)\r\n  File \"/home/is7yx/.virtualenvs/lux/local/lib/python2.7/site-packages/django/db/migrations/executor.py\", line 102, in apply_migration\r\n    migration.apply(project_state, schema_editor)\r\n  File \"/home/is7yx/.virtualenvs/lux/local/lib/python2.7/site-packages/django/db/migrations/migration.py\", line 105, in apply\r\n    operation.database_forwards(self.app_label, schema_editor, project_state, new_state)\r\n  File \"/home/is7yx/.virtualenvs/lux/local/lib/python2.7/site-packages/django/db/migrations/operations/special.py\", line 117, in database_forwards\r\n    self.code(from_state.render(), schema_editor)\r\n  File \"/home/is7yx/.virtualenvs/lux/local/lib/python2.7/site-packages/wagtail/wagtailimages/migrations/0004_make_focal_point_key_not_nullable.py\", line 12, in remove_duplicate_renditions\r\n    \"\"\")\r\n  File \"/home/is7yx/.virtualenvs/lux/local/lib/python2.7/site-packages/django/db/backends/schema.py\", line 103, in execute\r\n    cursor.execute(sql, params)\r\n  File \"/home/is7yx/.virtualenvs/lux/local/lib/python2.7/site-packages/django/db/backends/utils.py\", line 65, in execute\r\n    return self.cursor.execute(sql, params)\r\n  File \"/home/is7yx/.virtualenvs/lux/local/lib/python2.7/site-packages/django/db/utils.py\", line 94, in __exit__\r\n    six.reraise(dj_exc_type, dj_exc_value, traceback)\r\n  File \"/home/is7yx/.virtualenvs/lux/local/lib/python2.7/site-packages/django/db/backends/utils.py\", line 65, in execute\r\n    return self.cursor.execute(sql, params)\r\n  File \"/home/is7yx/.virtualenvs/lux/local/lib/python2.7/site-packages/django/db/backends/mysql/base.py\", line 129, in execute\r\n    return self.cursor.execute(query, args)\r\n  File \"/home/is7yx/.virtualenvs/lux/local/lib/python2.7/site-packages/MySQLdb/cursors.py\", line 205, in execute\r\n    self.errorhandler(self, exc, value)\r\n  File \"/home/is7yx/.virtualenvs/lux/local/lib/python2.7/site-packages/MySQLdb/connections.py\", line 36, in defaulterrorhandler\r\n    raise errorclass, errorvalue\r\ndjango.db.utils.OperationalError: (1093, \"You can't specify target table 'wagtailimages_rendition' for update in FROM clause\")\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/torchbox/wagtail/issues/comments/76751414","html_url":"https://github.com/torchbox/wagtail/issues/1032#issuecomment-76751414","issue_url":"https://api.github.com/repos/torchbox/wagtail/issues/1032","id":76751414,"user":{"login":"AEzzatA","id":2166388,"avatar_url":"https://avatars.githubusercontent.com/u/2166388?v=3","gravatar_id":"","url":"https://api.github.com/users/AEzzatA","html_url":"https://github.com/AEzzatA","followers_url":"https://api.github.com/users/AEzzatA/followers","following_url":"https://api.github.com/users/AEzzatA/following{/other_user}","gists_url":"https://api.github.com/users/AEzzatA/gists{/gist_id}","starred_url":"https://api.github.com/users/AEzzatA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AEzzatA/subscriptions","organizations_url":"https://api.github.com/users/AEzzatA/orgs","repos_url":"https://api.github.com/users/AEzzatA/repos","events_url":"https://api.github.com/users/AEzzatA/events{/privacy}","received_events_url":"https://api.github.com/users/AEzzatA/received_events","type":"User","site_admin":false},"created_at":"2015-03-02T17:01:01Z","updated_at":"2015-03-02T17:01:01Z","body":"Thanks @m-sanders  and @gasman. planning to PostgreSQL is a good idea I believe"}}