{"action":"created","issue":{"url":"https://api.github.com/repos/cakephp/migrations/issues/124","labels_url":"https://api.github.com/repos/cakephp/migrations/issues/124/labels{/name}","comments_url":"https://api.github.com/repos/cakephp/migrations/issues/124/comments","events_url":"https://api.github.com/repos/cakephp/migrations/issues/124/events","html_url":"https://github.com/cakephp/migrations/issues/124","id":106192987,"number":124,"title":"Issue with marking all as migrated","user":{"login":"dereuromark","id":39854,"avatar_url":"https://avatars.githubusercontent.com/u/39854?v=3","gravatar_id":"","url":"https://api.github.com/users/dereuromark","html_url":"https://github.com/dereuromark","followers_url":"https://api.github.com/users/dereuromark/followers","following_url":"https://api.github.com/users/dereuromark/following{/other_user}","gists_url":"https://api.github.com/users/dereuromark/gists{/gist_id}","starred_url":"https://api.github.com/users/dereuromark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dereuromark/subscriptions","organizations_url":"https://api.github.com/users/dereuromark/orgs","repos_url":"https://api.github.com/users/dereuromark/repos","events_url":"https://api.github.com/users/dereuromark/events{/privacy}","received_events_url":"https://api.github.com/users/dereuromark/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cakephp/migrations/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/cakephp/migrations/milestones/14","html_url":"https://github.com/cakephp/migrations/milestones/1.3.1","labels_url":"https://api.github.com/repos/cakephp/migrations/milestones/14/labels","id":1292394,"number":14,"title":"1.3.1","description":"","creator":{"login":"HavokInspiration","id":5243386,"avatar_url":"https://avatars.githubusercontent.com/u/5243386?v=3","gravatar_id":"","url":"https://api.github.com/users/HavokInspiration","html_url":"https://github.com/HavokInspiration","followers_url":"https://api.github.com/users/HavokInspiration/followers","following_url":"https://api.github.com/users/HavokInspiration/following{/other_user}","gists_url":"https://api.github.com/users/HavokInspiration/gists{/gist_id}","starred_url":"https://api.github.com/users/HavokInspiration/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HavokInspiration/subscriptions","organizations_url":"https://api.github.com/users/HavokInspiration/orgs","repos_url":"https://api.github.com/users/HavokInspiration/repos","events_url":"https://api.github.com/users/HavokInspiration/events{/privacy}","received_events_url":"https://api.github.com/users/HavokInspiration/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":3,"state":"open","created_at":"2015-09-06T09:26:22Z","updated_at":"2015-09-13T07:25:07Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2015-09-13T00:59:56Z","updated_at":"2015-09-13T10:37:52Z","closed_at":null,"body":"If you try to run `Migrations mark_migrated 123` it will tell you that this is not a valid version.\r\nBut if you do `Migrations mark_migrated *` with the wildcard operator it will say\r\n\r\n    Migration successfully marked migrated !\r\n\r\nBut will just add 0 as version in the DB. Doing it again results in\r\n\r\n    An error occurred : SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '0' for key 'PRIMARY'\r\n\r\nNow, while I think `*` was never really supported, I think the intuitive thing here would actually to support marking all as migrated."},"comment":{"url":"https://api.github.com/repos/cakephp/migrations/issues/comments/139858820","html_url":"https://github.com/cakephp/migrations/issues/124#issuecomment-139858820","issue_url":"https://api.github.com/repos/cakephp/migrations/issues/124","id":139858820,"user":{"login":"HavokInspiration","id":5243386,"avatar_url":"https://avatars.githubusercontent.com/u/5243386?v=3","gravatar_id":"","url":"https://api.github.com/users/HavokInspiration","html_url":"https://github.com/HavokInspiration","followers_url":"https://api.github.com/users/HavokInspiration/followers","following_url":"https://api.github.com/users/HavokInspiration/following{/other_user}","gists_url":"https://api.github.com/users/HavokInspiration/gists{/gist_id}","starred_url":"https://api.github.com/users/HavokInspiration/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HavokInspiration/subscriptions","organizations_url":"https://api.github.com/users/HavokInspiration/orgs","repos_url":"https://api.github.com/users/HavokInspiration/repos","events_url":"https://api.github.com/users/HavokInspiration/events{/privacy}","received_events_url":"https://api.github.com/users/HavokInspiration/received_events","type":"User","site_admin":false},"created_at":"2015-09-13T10:37:52Z","updated_at":"2015-09-13T10:37:52Z","body":"No no I was thinking of adding a special value \"all\" to the $version argument of the mark_migrated command. If used instead of a date all found migrations will ne migrated.\n\n-----Message d'origine-----\nDe : \"Mark S.\" <notifications@github.com>\nEnvoyé : ‎13/‎09/‎2015 11:33\nÀ : \"cakephp/migrations\" <migrations@noreply.github.com>\nCc : \"Yves P.\" <havokinspiration@gmail.com>\nObjet : Re: [migrations] Issue with marking all as migrated (#124)\n\nI dont think it warrants an own command as the use case is not that common.\n—\nReply to this email directly or view it on GitHub."}}