{"action":"closed","issue":{"url":"https://api.github.com/repos/ManageIQ/manageiq/issues/8385","repository_url":"https://api.github.com/repos/ManageIQ/manageiq","labels_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/8385/labels{/name}","comments_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/8385/comments","events_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/8385/events","html_url":"https://github.com/ManageIQ/manageiq/issues/8385","id":152582765,"number":8385,"title":"Migration 20160428215808 fails on existing database","user":{"login":"jpkrohling","id":13387,"avatar_url":"https://avatars.githubusercontent.com/u/13387?v=3","gravatar_id":"","url":"https://api.github.com/users/jpkrohling","html_url":"https://github.com/jpkrohling","followers_url":"https://api.github.com/users/jpkrohling/followers","following_url":"https://api.github.com/users/jpkrohling/following{/other_user}","gists_url":"https://api.github.com/users/jpkrohling/gists{/gist_id}","starred_url":"https://api.github.com/users/jpkrohling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpkrohling/subscriptions","organizations_url":"https://api.github.com/users/jpkrohling/orgs","repos_url":"https://api.github.com/users/jpkrohling/repos","events_url":"https://api.github.com/users/jpkrohling/events{/privacy}","received_events_url":"https://api.github.com/users/jpkrohling/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ManageIQ/manageiq/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/ManageIQ/manageiq/labels/sql%20migration","name":"sql migration","color":"6A92BC"}],"state":"closed","locked":false,"assignee":{"login":"gtanzillo","id":76593,"avatar_url":"https://avatars.githubusercontent.com/u/76593?v=3","gravatar_id":"","url":"https://api.github.com/users/gtanzillo","html_url":"https://github.com/gtanzillo","followers_url":"https://api.github.com/users/gtanzillo/followers","following_url":"https://api.github.com/users/gtanzillo/following{/other_user}","gists_url":"https://api.github.com/users/gtanzillo/gists{/gist_id}","starred_url":"https://api.github.com/users/gtanzillo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gtanzillo/subscriptions","organizations_url":"https://api.github.com/users/gtanzillo/orgs","repos_url":"https://api.github.com/users/gtanzillo/repos","events_url":"https://api.github.com/users/gtanzillo/events{/privacy}","received_events_url":"https://api.github.com/users/gtanzillo/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2016-05-02T15:53:24Z","updated_at":"2016-05-05T13:43:16Z","closed_at":"2016-05-05T13:43:16Z","body":"The migration 20160428215808 fails on a system with existing data, with the following output:\r\n\r\n```\r\n15:43:26  DEBUG [69a86072] \t== 20160428215808 AddFiltersToEntitlements: migrating =========================\r\n15:43:26 -- add_column(:entitlements, :filters, :text)\r\n15:43:26  DEBUG [69a86072] \trake aborted!\r\n15:43:26 StandardError: An error has occurred, this and all later migrations canceled:\r\n15:43:26 \r\n15:43:26 PG::DuplicateColumn: ERROR:  column \"filters\" of relation \"entitlements\" already exists\r\n15:43:26 : ALTER TABLE \"entitlements\" ADD \"filters\" text/opt/manageiq/shared/bundle/ruby/2.3.0/bundler/gems/rails-e0a9baa04402/activerecord/lib/active_record/connection_adapters/postgresql/database_statements.rb:98:in `async_exec'\r\n```\r\n"}}