{"action":"created","issue":{"url":"https://api.github.com/repos/mautic/mautic/issues/261","labels_url":"https://api.github.com/repos/mautic/mautic/issues/261/labels{/name}","comments_url":"https://api.github.com/repos/mautic/mautic/issues/261/comments","events_url":"https://api.github.com/repos/mautic/mautic/issues/261/events","html_url":"https://github.com/mautic/mautic/pull/261","id":66250935,"number":261,"title":"Added a check to the 1.0.2 migration script to prevent being double applied","user":{"login":"alanhartless","id":63312,"avatar_url":"https://avatars.githubusercontent.com/u/63312?v=3","gravatar_id":"","url":"https://api.github.com/users/alanhartless","html_url":"https://github.com/alanhartless","followers_url":"https://api.github.com/users/alanhartless/followers","following_url":"https://api.github.com/users/alanhartless/following{/other_user}","gists_url":"https://api.github.com/users/alanhartless/gists{/gist_id}","starred_url":"https://api.github.com/users/alanhartless/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alanhartless/subscriptions","organizations_url":"https://api.github.com/users/alanhartless/orgs","repos_url":"https://api.github.com/users/alanhartless/repos","events_url":"https://api.github.com/users/alanhartless/events{/privacy}","received_events_url":"https://api.github.com/users/alanhartless/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mautic/mautic/labels/Ready%20To%20Test","name":"Ready To Test","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/mautic/mautic/milestones/1","html_url":"https://github.com/mautic/mautic/milestones/1.0.3","labels_url":"https://api.github.com/repos/mautic/mautic/milestones/1/labels","id":1060497,"number":1,"title":"1.0.3","description":"Next Patch Release","creator":{"login":"dbhurley","id":5251425,"avatar_url":"https://avatars.githubusercontent.com/u/5251425?v=3","gravatar_id":"","url":"https://api.github.com/users/dbhurley","html_url":"https://github.com/dbhurley","followers_url":"https://api.github.com/users/dbhurley/followers","following_url":"https://api.github.com/users/dbhurley/following{/other_user}","gists_url":"https://api.github.com/users/dbhurley/gists{/gist_id}","starred_url":"https://api.github.com/users/dbhurley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbhurley/subscriptions","organizations_url":"https://api.github.com/users/dbhurley/orgs","repos_url":"https://api.github.com/users/dbhurley/repos","events_url":"https://api.github.com/users/dbhurley/events{/privacy}","received_events_url":"https://api.github.com/users/dbhurley/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":21,"state":"open","created_at":"2015-04-09T15:55:02Z","updated_at":"2015-04-14T15:06:51Z","due_on":null,"closed_at":null},"comments":20,"created_at":"2015-04-03T23:48:49Z","updated_at":"2015-04-14T16:42:26Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mautic/mautic/pulls/261","html_url":"https://github.com/mautic/mautic/pull/261","diff_url":"https://github.com/mautic/mautic/pull/261.diff","patch_url":"https://github.com/mautic/mautic/pull/261.patch"},"body":"This shouldn't become an issue until the next version is released, but added a catch to check to see if the schema is already applied and prevents the attempt to reapply if it has. \r\n\r\nTo test, if you an up-to-date schema, remove 20150402000000 from your migrations table then run `php app/console doctrine:migrations:migrate` You should get a message that the schema has already been applied and no errors."},"comment":{"url":"https://api.github.com/repos/mautic/mautic/issues/comments/92969601","html_url":"https://github.com/mautic/mautic/pull/261#issuecomment-92969601","issue_url":"https://api.github.com/repos/mautic/mautic/issues/261","id":92969601,"user":{"login":"escopecz","id":1235442,"avatar_url":"https://avatars.githubusercontent.com/u/1235442?v=3","gravatar_id":"","url":"https://api.github.com/users/escopecz","html_url":"https://github.com/escopecz","followers_url":"https://api.github.com/users/escopecz/followers","following_url":"https://api.github.com/users/escopecz/following{/other_user}","gists_url":"https://api.github.com/users/escopecz/gists{/gist_id}","starred_url":"https://api.github.com/users/escopecz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/escopecz/subscriptions","organizations_url":"https://api.github.com/users/escopecz/orgs","repos_url":"https://api.github.com/users/escopecz/repos","events_url":"https://api.github.com/users/escopecz/events{/privacy}","received_events_url":"https://api.github.com/users/escopecz/received_events","type":"User","site_admin":false},"created_at":"2015-04-14T16:42:26Z","updated_at":"2015-04-14T16:42:26Z","body":"I double-checked. It's the correct database, the cache is cleared, database schema up to date and git is on alanhartless-migration-fix branch. Still getting this warning:\r\n```\r\nWARNING! You have 1 previously executed migrations in the database that are not registered migrations.\r\n    >> 2015-04-03 00:00:00 (20150403000000)\r\n```\r\nThis is content of migrations table:\r\n```\r\n20150201000000\r\n20150225000000\r\n20150307000000\r\n20150310000000\r\n```\r\nand this is content of migrations folder:\r\n```\r\nVersion20150201000000.php\r\nVersion20150225000000.php\r\nVersion20150307000000.php\r\nVersion20150310000000.php\r\nVersion20150402000000.php\r\n```"}}