{"action":"created","issue":{"url":"https://api.github.com/repos/Zenify/DoctrineMigrations/issues/31","repository_url":"https://api.github.com/repos/Zenify/DoctrineMigrations","labels_url":"https://api.github.com/repos/Zenify/DoctrineMigrations/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/Zenify/DoctrineMigrations/issues/31/comments","events_url":"https://api.github.com/repos/Zenify/DoctrineMigrations/issues/31/events","html_url":"https://github.com/Zenify/DoctrineMigrations/issues/31","id":183688459,"number":31,"title":"Rollback?","user":{"login":"landsman","id":3184228,"avatar_url":"https://avatars.githubusercontent.com/u/3184228?v=3","gravatar_id":"","url":"https://api.github.com/users/landsman","html_url":"https://github.com/landsman","followers_url":"https://api.github.com/users/landsman/followers","following_url":"https://api.github.com/users/landsman/following{/other_user}","gists_url":"https://api.github.com/users/landsman/gists{/gist_id}","starred_url":"https://api.github.com/users/landsman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/landsman/subscriptions","organizations_url":"https://api.github.com/users/landsman/orgs","repos_url":"https://api.github.com/users/landsman/repos","events_url":"https://api.github.com/users/landsman/events{/privacy}","received_events_url":"https://api.github.com/users/landsman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-10-18T13:37:22Z","updated_at":"2016-10-18T15:34:23Z","closed_at":null,"body":"1) Zaskočilo mě, že pokud dojde v rámci migrace k SQL chybě neprovede se rollback celé migrace zpět. To jsem předpokládal, že nastane, když to pracuje s Doctrine. V metodě \"up\" jsem použil více krát $this->addSql(); pro větší přehlednost, ale to doufám vliv nemá.\r\n\r\n2) metoda \"postUp\" slouží k odpálení SQL po metodě \"up\" chápu to správně? Mám problem s tím, že neprovede. V konzoli její SQL není, v databázi beze změn."},"comment":{"url":"https://api.github.com/repos/Zenify/DoctrineMigrations/issues/comments/254546214","html_url":"https://github.com/Zenify/DoctrineMigrations/issues/31#issuecomment-254546214","issue_url":"https://api.github.com/repos/Zenify/DoctrineMigrations/issues/31","id":254546214,"user":{"login":"enumag","id":539462,"avatar_url":"https://avatars.githubusercontent.com/u/539462?v=3","gravatar_id":"","url":"https://api.github.com/users/enumag","html_url":"https://github.com/enumag","followers_url":"https://api.github.com/users/enumag/followers","following_url":"https://api.github.com/users/enumag/following{/other_user}","gists_url":"https://api.github.com/users/enumag/gists{/gist_id}","starred_url":"https://api.github.com/users/enumag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enumag/subscriptions","organizations_url":"https://api.github.com/users/enumag/orgs","repos_url":"https://api.github.com/users/enumag/repos","events_url":"https://api.github.com/users/enumag/events{/privacy}","received_events_url":"https://api.github.com/users/enumag/received_events","type":"User","site_admin":false},"created_at":"2016-10-18T15:34:23Z","updated_at":"2016-10-18T15:34:23Z","body":"Akorát pozor že pokud selžou ty migrace tak bys měl ideálně revetnout i deployment kódu. Nový kód se starou db většinou fungovat nebude."}}
{"actor":{"display_login":"enumag"}}