{"action":"created","comment":{"url":"https://api.github.com/repos/sequelize/umzug/pulls/comments/59965936","id":59965936,"diff_hunk":"@@ -211,6 +219,47 @@ var Umzug = module.exports = redefine.Class({\n     }\n   },\n \n+  _findMigrationsFromMatch: function (from, method) {\n+    // We'll fetch all migrations and work our way from start to finish\n+    return this._findMigrations()\n+      .bind(this)\n+      .then(function(migrations) {\n+\n+        var found = false;\n+        return migrations.filter(function(migration) {\n+          if (migration.testFileName(from)) {\n+            found = true;\n+            return false;\n+          }\n+          return found;\n+        });\n+      })\n+      .then(function(migrations) {","path":"index.js","position":50,"original_position":50,"commit_id":"b999ca094599cfeecee75302b9bca08e3fd79452","original_commit_id":"b999ca094599cfeecee75302b9bca08e3fd79452","user":{"login":"jukkah","id":1504091,"avatar_url":"https://avatars.githubusercontent.com/u/1504091?v=3","gravatar_id":"","url":"https://api.github.com/users/jukkah","html_url":"https://github.com/jukkah","followers_url":"https://api.github.com/users/jukkah/followers","following_url":"https://api.github.com/users/jukkah/following{/other_user}","gists_url":"https://api.github.com/users/jukkah/gists{/gist_id}","starred_url":"https://api.github.com/users/jukkah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jukkah/subscriptions","organizations_url":"https://api.github.com/users/jukkah/orgs","repos_url":"https://api.github.com/users/jukkah/repos","events_url":"https://api.github.com/users/jukkah/events{/privacy}","received_events_url":"https://api.github.com/users/jukkah/received_events","type":"User","site_admin":false},"body":"What is the point of this?","created_at":"2016-04-16T10:59:31Z","updated_at":"2016-04-16T10:59:31Z","html_url":"https://github.com/sequelize/umzug/pull/72#discussion_r59965936","pull_request_url":"https://api.github.com/repos/sequelize/umzug/pulls/72","_links":{"self":{"href":"https://api.github.com/repos/sequelize/umzug/pulls/comments/59965936"},"html":{"href":"https://github.com/sequelize/umzug/pull/72#discussion_r59965936"},"pull_request":{"href":"https://api.github.com/repos/sequelize/umzug/pulls/72"}}},"pull_request":{"url":"https://api.github.com/repos/sequelize/umzug/pulls/72","id":66126849,"html_url":"https://github.com/sequelize/umzug/pull/72","diff_url":"https://github.com/sequelize/umzug/pull/72.diff","patch_url":"https://github.com/sequelize/umzug/pull/72.patch","issue_url":"https://api.github.com/repos/sequelize/umzug/issues/72","number":72,"state":"open","locked":false,"title":"Introduce a 'from' option for up() method?","user":{"login":"thanpolas","id":458813,"avatar_url":"https://avatars.githubusercontent.com/u/458813?v=3","gravatar_id":"","url":"https://api.github.com/users/thanpolas","html_url":"https://github.com/thanpolas","followers_url":"https://api.github.com/users/thanpolas/followers","following_url":"https://api.github.com/users/thanpolas/following{/other_user}","gists_url":"https://api.github.com/users/thanpolas/gists{/gist_id}","starred_url":"https://api.github.com/users/thanpolas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thanpolas/subscriptions","organizations_url":"https://api.github.com/users/thanpolas/orgs","repos_url":"https://api.github.com/users/thanpolas/repos","events_url":"https://api.github.com/users/thanpolas/events{/privacy}","received_events_url":"https://api.github.com/users/thanpolas/received_events","type":"User","site_admin":false},"body":"In my workflow, developing a desktop native app using Electron, I need the functionality were migrations are executed from a specific migration and onwards.\r\n\r\nThe case is simple, my app gets installed on new machines. Something new comes up for the next version and so I create `migration-1`.\r\n\r\nWhen I will release the next version which includes the `migration-1` script, i want this migration to run on all clients that have the app already installed and not run on new installations of the new version which incorporate the migration part in the codebase / db schema already.\r\n\r\nso would you accept a `from` option for the up() method?","created_at":"2016-04-12T09:33:53Z","updated_at":"2016-04-16T10:59:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"28967eacbc927bd08b8cd3e1026979210706daa5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sequelize/umzug/pulls/72/commits","review_comments_url":"https://api.github.com/repos/sequelize/umzug/pulls/72/comments","review_comment_url":"https://api.github.com/repos/sequelize/umzug/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sequelize/umzug/issues/72/comments","statuses_url":"https://api.github.com/repos/sequelize/umzug/statuses/b999ca094599cfeecee75302b9bca08e3fd79452","head":{"label":"thanpolas:from-query","ref":"from-query","sha":"b999ca094599cfeecee75302b9bca08e3fd79452","user":{"login":"thanpolas","id":458813,"avatar_url":"https://avatars.githubusercontent.com/u/458813?v=3","gravatar_id":"","url":"https://api.github.com/users/thanpolas","html_url":"https://github.com/thanpolas","followers_url":"https://api.github.com/users/thanpolas/followers","following_url":"https://api.github.com/users/thanpolas/following{/other_user}","gists_url":"https://api.github.com/users/thanpolas/gists{/gist_id}","starred_url":"https://api.github.com/users/thanpolas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thanpolas/subscriptions","organizations_url":"https://api.github.com/users/thanpolas/orgs","repos_url":"https://api.github.com/users/thanpolas/repos","events_url":"https://api.github.com/users/thanpolas/events{/privacy}","received_events_url":"https://api.github.com/users/thanpolas/received_events","type":"User","site_admin":false},"repo":{"id":56045573,"name":"umzug","full_name":"thanpolas/umzug","owner":{"login":"thanpolas","id":458813,"avatar_url":"https://avatars.githubusercontent.com/u/458813?v=3","gravatar_id":"","url":"https://api.github.com/users/thanpolas","html_url":"https://github.com/thanpolas","followers_url":"https://api.github.com/users/thanpolas/followers","following_url":"https://api.github.com/users/thanpolas/following{/other_user}","gists_url":"https://api.github.com/users/thanpolas/gists{/gist_id}","starred_url":"https://api.github.com/users/thanpolas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thanpolas/subscriptions","organizations_url":"https://api.github.com/users/thanpolas/orgs","repos_url":"https://api.github.com/users/thanpolas/repos","events_url":"https://api.github.com/users/thanpolas/events{/privacy}","received_events_url":"https://api.github.com/users/thanpolas/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/thanpolas/umzug","description":"Framework agnostic migration tool for Node.JS","fork":true,"url":"https://api.github.com/repos/thanpolas/umzug","forks_url":"https://api.github.com/repos/thanpolas/umzug/forks","keys_url":"https://api.github.com/repos/thanpolas/umzug/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thanpolas/umzug/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thanpolas/umzug/teams","hooks_url":"https://api.github.com/repos/thanpolas/umzug/hooks","issue_events_url":"https://api.github.com/repos/thanpolas/umzug/issues/events{/number}","events_url":"https://api.github.com/repos/thanpolas/umzug/events","assignees_url":"https://api.github.com/repos/thanpolas/umzug/assignees{/user}","branches_url":"https://api.github.com/repos/thanpolas/umzug/branches{/branch}","tags_url":"https://api.github.com/repos/thanpolas/umzug/tags","blobs_url":"https://api.github.com/repos/thanpolas/umzug/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thanpolas/umzug/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thanpolas/umzug/git/refs{/sha}","trees_url":"https://api.github.com/repos/thanpolas/umzug/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thanpolas/umzug/statuses/{sha}","languages_url":"https://api.github.com/repos/thanpolas/umzug/languages","stargazers_url":"https://api.github.com/repos/thanpolas/umzug/stargazers","contributors_url":"https://api.github.com/repos/thanpolas/umzug/contributors","subscribers_url":"https://api.github.com/repos/thanpolas/umzug/subscribers","subscription_url":"https://api.github.com/repos/thanpolas/umzug/subscription","commits_url":"https://api.github.com/repos/thanpolas/umzug/commits{/sha}","git_commits_url":"https://api.github.com/repos/thanpolas/umzug/git/commits{/sha}","comments_url":"https://api.github.com/repos/thanpolas/umzug/comments{/number}","issue_comment_url":"https://api.github.com/repos/thanpolas/umzug/issues/comments{/number}","contents_url":"https://api.github.com/repos/thanpolas/umzug/contents/{+path}","compare_url":"https://api.github.com/repos/thanpolas/umzug/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thanpolas/umzug/merges","archive_url":"https://api.github.com/repos/thanpolas/umzug/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thanpolas/umzug/downloads","issues_url":"https://api.github.com/repos/thanpolas/umzug/issues{/number}","pulls_url":"https://api.github.com/repos/thanpolas/umzug/pulls{/number}","milestones_url":"https://api.github.com/repos/thanpolas/umzug/milestones{/number}","notifications_url":"https://api.github.com/repos/thanpolas/umzug/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thanpolas/umzug/labels{/name}","releases_url":"https://api.github.com/repos/thanpolas/umzug/releases{/id}","deployments_url":"https://api.github.com/repos/thanpolas/umzug/deployments","created_at":"2016-04-12T08:35:29Z","updated_at":"2016-04-12T08:35:30Z","pushed_at":"2016-04-12T09:30:32Z","git_url":"git://github.com/thanpolas/umzug.git","ssh_url":"git@github.com:thanpolas/umzug.git","clone_url":"https://github.com/thanpolas/umzug.git","svn_url":"https://github.com/thanpolas/umzug","homepage":"","size":155,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"sequelize:master","ref":"master","sha":"b309fb455e2b475c1633636ed7771ecc1b164103","user":{"login":"sequelize","id":3591786,"avatar_url":"https://avatars.githubusercontent.com/u/3591786?v=3","gravatar_id":"","url":"https://api.github.com/users/sequelize","html_url":"https://github.com/sequelize","followers_url":"https://api.github.com/users/sequelize/followers","following_url":"https://api.github.com/users/sequelize/following{/other_user}","gists_url":"https://api.github.com/users/sequelize/gists{/gist_id}","starred_url":"https://api.github.com/users/sequelize/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sequelize/subscriptions","organizations_url":"https://api.github.com/users/sequelize/orgs","repos_url":"https://api.github.com/users/sequelize/repos","events_url":"https://api.github.com/users/sequelize/events{/privacy}","received_events_url":"https://api.github.com/users/sequelize/received_events","type":"Organization","site_admin":false},"repo":{"id":25937956,"name":"umzug","full_name":"sequelize/umzug","owner":{"login":"sequelize","id":3591786,"avatar_url":"https://avatars.githubusercontent.com/u/3591786?v=3","gravatar_id":"","url":"https://api.github.com/users/sequelize","html_url":"https://github.com/sequelize","followers_url":"https://api.github.com/users/sequelize/followers","following_url":"https://api.github.com/users/sequelize/following{/other_user}","gists_url":"https://api.github.com/users/sequelize/gists{/gist_id}","starred_url":"https://api.github.com/users/sequelize/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sequelize/subscriptions","organizations_url":"https://api.github.com/users/sequelize/orgs","repos_url":"https://api.github.com/users/sequelize/repos","events_url":"https://api.github.com/users/sequelize/events{/privacy}","received_events_url":"https://api.github.com/users/sequelize/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sequelize/umzug","description":"Framework agnostic migration tool for Node.JS","fork":false,"url":"https://api.github.com/repos/sequelize/umzug","forks_url":"https://api.github.com/repos/sequelize/umzug/forks","keys_url":"https://api.github.com/repos/sequelize/umzug/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sequelize/umzug/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sequelize/umzug/teams","hooks_url":"https://api.github.com/repos/sequelize/umzug/hooks","issue_events_url":"https://api.github.com/repos/sequelize/umzug/issues/events{/number}","events_url":"https://api.github.com/repos/sequelize/umzug/events","assignees_url":"https://api.github.com/repos/sequelize/umzug/assignees{/user}","branches_url":"https://api.github.com/repos/sequelize/umzug/branches{/branch}","tags_url":"https://api.github.com/repos/sequelize/umzug/tags","blobs_url":"https://api.github.com/repos/sequelize/umzug/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sequelize/umzug/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sequelize/umzug/git/refs{/sha}","trees_url":"https://api.github.com/repos/sequelize/umzug/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sequelize/umzug/statuses/{sha}","languages_url":"https://api.github.com/repos/sequelize/umzug/languages","stargazers_url":"https://api.github.com/repos/sequelize/umzug/stargazers","contributors_url":"https://api.github.com/repos/sequelize/umzug/contributors","subscribers_url":"https://api.github.com/repos/sequelize/umzug/subscribers","subscription_url":"https://api.github.com/repos/sequelize/umzug/subscription","commits_url":"https://api.github.com/repos/sequelize/umzug/commits{/sha}","git_commits_url":"https://api.github.com/repos/sequelize/umzug/git/commits{/sha}","comments_url":"https://api.github.com/repos/sequelize/umzug/comments{/number}","issue_comment_url":"https://api.github.com/repos/sequelize/umzug/issues/comments{/number}","contents_url":"https://api.github.com/repos/sequelize/umzug/contents/{+path}","compare_url":"https://api.github.com/repos/sequelize/umzug/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sequelize/umzug/merges","archive_url":"https://api.github.com/repos/sequelize/umzug/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sequelize/umzug/downloads","issues_url":"https://api.github.com/repos/sequelize/umzug/issues{/number}","pulls_url":"https://api.github.com/repos/sequelize/umzug/pulls{/number}","milestones_url":"https://api.github.com/repos/sequelize/umzug/milestones{/number}","notifications_url":"https://api.github.com/repos/sequelize/umzug/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sequelize/umzug/labels{/name}","releases_url":"https://api.github.com/repos/sequelize/umzug/releases{/id}","deployments_url":"https://api.github.com/repos/sequelize/umzug/deployments","created_at":"2014-10-29T19:36:59Z","updated_at":"2016-04-15T01:20:16Z","pushed_at":"2016-04-14T07:30:29Z","git_url":"git://github.com/sequelize/umzug.git","ssh_url":"git@github.com:sequelize/umzug.git","clone_url":"https://github.com/sequelize/umzug.git","svn_url":"https://github.com/sequelize/umzug","homepage":"","size":172,"stargazers_count":250,"watchers_count":250,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":28,"mirror_url":null,"open_issues_count":17,"forks":28,"open_issues":17,"watchers":250,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sequelize/umzug/pulls/72"},"html":{"href":"https://github.com/sequelize/umzug/pull/72"},"issue":{"href":"https://api.github.com/repos/sequelize/umzug/issues/72"},"comments":{"href":"https://api.github.com/repos/sequelize/umzug/issues/72/comments"},"review_comments":{"href":"https://api.github.com/repos/sequelize/umzug/pulls/72/comments"},"review_comment":{"href":"https://api.github.com/repos/sequelize/umzug/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sequelize/umzug/pulls/72/commits"},"statuses":{"href":"https://api.github.com/repos/sequelize/umzug/statuses/b999ca094599cfeecee75302b9bca08e3fd79452"}}}}