{"action":"created","issue":{"url":"https://api.github.com/repos/flyway/flyway/issues/1326","repository_url":"https://api.github.com/repos/flyway/flyway","labels_url":"https://api.github.com/repos/flyway/flyway/issues/1326/labels{/name}","comments_url":"https://api.github.com/repos/flyway/flyway/issues/1326/comments","events_url":"https://api.github.com/repos/flyway/flyway/issues/1326/events","html_url":"https://github.com/flyway/flyway/issues/1326","id":157658062,"number":1326,"title":"SqlScriptFlywayCallback errors in ALL_CALLBACKS list","user":{"login":"frbo42","id":15197426,"avatar_url":"https://avatars.githubusercontent.com/u/15197426?v=3","gravatar_id":"","url":"https://api.github.com/users/frbo42","html_url":"https://github.com/frbo42","followers_url":"https://api.github.com/users/frbo42/followers","following_url":"https://api.github.com/users/frbo42/following{/other_user}","gists_url":"https://api.github.com/users/frbo42/gists{/gist_id}","starred_url":"https://api.github.com/users/frbo42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frbo42/subscriptions","organizations_url":"https://api.github.com/users/frbo42/orgs","repos_url":"https://api.github.com/users/frbo42/repos","events_url":"https://api.github.com/users/frbo42/events{/privacy}","received_events_url":"https://api.github.com/users/frbo42/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/flyway/flyway/labels/t:%20bug","name":"t: bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/flyway/flyway/milestones/11","html_url":"https://github.com/flyway/flyway/milestones/Flyway%204.0.2","labels_url":"https://api.github.com/repos/flyway/flyway/milestones/11/labels","id":1801958,"number":11,"title":"Flyway 4.0.2","description":"","creator":{"login":"axelfontaine","id":684824,"avatar_url":"https://avatars.githubusercontent.com/u/684824?v=3","gravatar_id":"","url":"https://api.github.com/users/axelfontaine","html_url":"https://github.com/axelfontaine","followers_url":"https://api.github.com/users/axelfontaine/followers","following_url":"https://api.github.com/users/axelfontaine/following{/other_user}","gists_url":"https://api.github.com/users/axelfontaine/gists{/gist_id}","starred_url":"https://api.github.com/users/axelfontaine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/axelfontaine/subscriptions","organizations_url":"https://api.github.com/users/axelfontaine/orgs","repos_url":"https://api.github.com/users/axelfontaine/repos","events_url":"https://api.github.com/users/axelfontaine/events{/privacy}","received_events_url":"https://api.github.com/users/axelfontaine/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":4,"state":"open","created_at":"2016-06-01T10:29:40Z","updated_at":"2016-06-08T16:29:47Z","due_on":"2016-06-02T22:00:00Z","closed_at":null},"comments":1,"created_at":"2016-05-31T12:20:41Z","updated_at":"2016-06-08T16:30:09Z","closed_at":"2016-06-08T16:29:47Z","body":"###### What version of Flyway are you using?\r\n4.0.1\r\n\r\n###### What database are you using (type & version)?\r\nOracle 12c\r\n\r\n###### What operating system are you using?\r\nWindows (for development)\r\nLinux (prod)\r\n\r\n\r\nBy inspecting the code below, you will see that before_clean and after_clean, is added twice in the all_callback list. \r\nwhile before_info and after_info is not added to the list:\r\n\r\n    public class SqlScriptFlywayCallback implements FlywayCallback {\r\n    private static final Log LOG = LogFactory.getLog(SqlScriptFlywayCallback.class);\r\n    private static final String BEFORE_CLEAN = \"beforeClean\";\r\n    private static final String AFTER_CLEAN = \"afterClean\";\r\n    private static final String BEFORE_MIGRATE = \"beforeMigrate\";\r\n    private static final String AFTER_MIGRATE = \"afterMigrate\";\r\n    private static final String BEFORE_EACH_MIGRATE = \"beforeEachMigrate\";\r\n    private static final String AFTER_EACH_MIGRATE = \"afterEachMigrate\";\r\n    private static final String BEFORE_VALIDATE = \"beforeValidate\";\r\n    private static final String AFTER_VALIDATE = \"afterValidate\";\r\n    private static final String BEFORE_BASELINE = \"beforeBaseline\";\r\n    private static final String AFTER_BASELINE = \"afterBaseline\";\r\n    private static final String BEFORE_REPAIR = \"beforeRepair\";\r\n    private static final String AFTER_REPAIR = \"afterRepair\";\r\n    private static final String BEFORE_INFO = \"beforeInfo\";\r\n    private static final String AFTER_INFO = \"afterInfo\";\r\n\r\n    public static final List<String> ALL_CALLBACKS = Arrays.asList(\r\n            **BEFORE_CLEAN**, **AFTER_CLEAN**,\r\n            BEFORE_MIGRATE, BEFORE_EACH_MIGRATE, AFTER_EACH_MIGRATE, AFTER_MIGRATE,\r\n            BEFORE_VALIDATE, AFTER_VALIDATE,\r\n            BEFORE_BASELINE, AFTER_BASELINE,\r\n            BEFORE_REPAIR, AFTER_REPAIR,\r\n            **BEFORE_CLEAN**, **AFTER_CLEAN**);`\r\n\r\n\r\nThe fix should be simple enough :)"},"comment":{"url":"https://api.github.com/repos/flyway/flyway/issues/comments/224647645","html_url":"https://github.com/flyway/flyway/issues/1326#issuecomment-224647645","issue_url":"https://api.github.com/repos/flyway/flyway/issues/1326","id":224647645,"user":{"login":"axelfontaine","id":684824,"avatar_url":"https://avatars.githubusercontent.com/u/684824?v=3","gravatar_id":"","url":"https://api.github.com/users/axelfontaine","html_url":"https://github.com/axelfontaine","followers_url":"https://api.github.com/users/axelfontaine/followers","following_url":"https://api.github.com/users/axelfontaine/following{/other_user}","gists_url":"https://api.github.com/users/axelfontaine/gists{/gist_id}","starred_url":"https://api.github.com/users/axelfontaine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/axelfontaine/subscriptions","organizations_url":"https://api.github.com/users/axelfontaine/orgs","repos_url":"https://api.github.com/users/axelfontaine/repos","events_url":"https://api.github.com/users/axelfontaine/events{/privacy}","received_events_url":"https://api.github.com/users/axelfontaine/received_events","type":"User","site_admin":false},"created_at":"2016-06-08T16:30:09Z","updated_at":"2016-06-08T16:30:09Z","body":"Good catch! Thanks!"}}
{"actor":{"display_login":"axelfontaine"}}