{"action":"created","issue":{"url":"https://api.github.com/repos/evonove/django-oauth-toolkit/issues/236","labels_url":"https://api.github.com/repos/evonove/django-oauth-toolkit/issues/236/labels{/name}","comments_url":"https://api.github.com/repos/evonove/django-oauth-toolkit/issues/236/comments","events_url":"https://api.github.com/repos/evonove/django-oauth-toolkit/issues/236/events","html_url":"https://github.com/evonove/django-oauth-toolkit/issues/236","id":71303672,"number":236,"title":"Upgrading from 0.7.2 to 0.8.0 breaks existing applications","user":{"login":"OdyX","id":417403,"avatar_url":"https://avatars.githubusercontent.com/u/417403?v=3","gravatar_id":"","url":"https://api.github.com/users/OdyX","html_url":"https://github.com/OdyX","followers_url":"https://api.github.com/users/OdyX/followers","following_url":"https://api.github.com/users/OdyX/following{/other_user}","gists_url":"https://api.github.com/users/OdyX/gists{/gist_id}","starred_url":"https://api.github.com/users/OdyX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OdyX/subscriptions","organizations_url":"https://api.github.com/users/OdyX/orgs","repos_url":"https://api.github.com/users/OdyX/repos","events_url":"https://api.github.com/users/OdyX/events{/privacy}","received_events_url":"https://api.github.com/users/OdyX/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-27T14:41:31Z","updated_at":"2015-04-28T08:33:23Z","closed_at":"2015-04-27T20:20:35Z","body":"Trying to upgrade django-oauth-toolkit from 0.7.2 to 0.8.0 breaks, apparently because of missing migrations:\r\n```\r\nProgrammingError: column oauth2_provider_application.skip_authorization does not exist\r\nLINE 1: ...nt_secret\", \"oauth2_provider_application\".\"name\", \"oauth2_pr...\r\n                                                             ^\r\n```\r\nThis, when trying to edit an existing application through the administration, or otherwise trying to use it.\r\n"},"comment":{"url":"https://api.github.com/repos/evonove/django-oauth-toolkit/issues/comments/96975273","html_url":"https://github.com/evonove/django-oauth-toolkit/issues/236#issuecomment-96975273","issue_url":"https://api.github.com/repos/evonove/django-oauth-toolkit/issues/236","id":96975273,"user":{"login":"synasius","id":217898,"avatar_url":"https://avatars.githubusercontent.com/u/217898?v=3","gravatar_id":"","url":"https://api.github.com/users/synasius","html_url":"https://github.com/synasius","followers_url":"https://api.github.com/users/synasius/followers","following_url":"https://api.github.com/users/synasius/following{/other_user}","gists_url":"https://api.github.com/users/synasius/gists{/gist_id}","starred_url":"https://api.github.com/users/synasius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/synasius/subscriptions","organizations_url":"https://api.github.com/users/synasius/orgs","repos_url":"https://api.github.com/users/synasius/repos","events_url":"https://api.github.com/users/synasius/events{/privacy}","received_events_url":"https://api.github.com/users/synasius/received_events","type":"User","site_admin":false},"created_at":"2015-04-28T08:33:23Z","updated_at":"2015-04-28T08:33:23Z","body":"Hi,\n\nhave you upgraded to django>1.7? It looks like you're not using south\nanymore.\n\nYou should first run all the south migrations, then you switch to django1.8\nand fake the initial migration\n\n\n\n2015-04-28 10:16 GMT+02:00 Didier Raboud <notifications@github.com>:\n\n> Sorry, but 0.8.1 didn't solve it. It's now broken differently.\n>\n> If you have an application already setup in 0.7.2, the ./manage.py migrate\n> run after installing django-oauth-toolkit 0.8.1 will get you this error:\n>\n>   Applying oauth2_provider.0001_initial...Traceback (most recent call last):\n>   File \"./manage.py\", line 17, in <module>\n>     execute_from_command_line(sys.argv)\n>   File \"…/lib/python2.7/site-packages/django/core/management/__init__.py\", line 385, in execute_from_command_line\n>     utility.execute()\n>   File \"…/lib/python2.7/site-packages/django/core/management/__init__.py\", line 377, in execute\n>     self.fetch_command(subcommand).run_from_argv(self.argv)\n>   File \"…/lib/python2.7/site-packages/django/core/management/base.py\", line 288, in run_from_argv\n>     self.execute(*args, **options.__dict__)\n>   File \"…/lib/python2.7/site-packages/django/core/management/base.py\", line 338, in execute\n>     output = self.handle(*args, **options)\n>   File \"…/lib/python2.7/site-packages/django/core/management/commands/migrate.py\", line 161, in handle\n>     executor.migrate(targets, plan, fake=options.get(\"fake\", False))\n>   File \"…/lib/python2.7/site-packages/django/db/migrations/executor.py\", line 68, in migrate\n>     self.apply_migration(migration, fake=fake)\n>   File \"…/lib/python2.7/site-packages/django/db/migrations/executor.py\", line 102, in apply_migration\n>     migration.apply(project_state, schema_editor)\n>   File \"…/lib/python2.7/site-packages/django/db/migrations/migration.py\", line 108, in apply\n>     operation.database_forwards(self.app_label, schema_editor, project_state, new_state)\n>   File \"…/lib/python2.7/site-packages/django/db/migrations/operations/models.py\", line 36, in database_forwards\n>     schema_editor.create_model(model)\n>   File \"…/lib/python2.7/site-packages/django/db/backends/schema.py\", line 262, in create_model\n>     self.execute(sql, params)\n>   File \"…/lib/python2.7/site-packages/django/db/backends/schema.py\", line 103, in execute\n>     cursor.execute(sql, params)\n>   File \"…/lib/python2.7/site-packages/django/db/backends/utils.py\", line 81, in execute\n>     return super(CursorDebugWrapper, self).execute(sql, params)\n>   File \"…/lib/python2.7/site-packages/django/db/backends/utils.py\", line 65, in execute\n>     return self.cursor.execute(sql, params)\n>   File \"…/lib/python2.7/site-packages/django/db/utils.py\", line 94, in __exit__\n>     six.reraise(dj_exc_type, dj_exc_value, traceback)\n>   File \"…/lib/python2.7/site-packages/django/db/backends/utils.py\", line 65, in execute\n>     return self.cursor.execute(sql, params)\n> django.db.utils.ProgrammingError: relation \"oauth2_provider_application\" already exists\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/evonove/django-oauth-toolkit/issues/236#issuecomment-96969277>\n> .\n>\n\n\n\n-- \nFederico Frenguelli\n"}}