{"action":"opened","number":3,"pull_request":{"url":"https://api.github.com/repos/teoljungberg/fx/pulls/3","id":93931743,"html_url":"https://github.com/teoljungberg/fx/pull/3","diff_url":"https://github.com/teoljungberg/fx/pull/3.diff","patch_url":"https://github.com/teoljungberg/fx/pull/3.patch","issue_url":"https://api.github.com/repos/teoljungberg/fx/issues/3","number":3,"state":"open","locked":false,"title":"Order triggers and functions by Postgres oid","user":{"login":"teoljungberg","id":810650,"avatar_url":"https://avatars.githubusercontent.com/u/810650?v=3","gravatar_id":"","url":"https://api.github.com/users/teoljungberg","html_url":"https://github.com/teoljungberg","followers_url":"https://api.github.com/users/teoljungberg/followers","following_url":"https://api.github.com/users/teoljungberg/following{/other_user}","gists_url":"https://api.github.com/users/teoljungberg/gists{/gist_id}","starred_url":"https://api.github.com/users/teoljungberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teoljungberg/subscriptions","organizations_url":"https://api.github.com/users/teoljungberg/orgs","repos_url":"https://api.github.com/users/teoljungberg/repos","events_url":"https://api.github.com/users/teoljungberg/events{/privacy}","received_events_url":"https://api.github.com/users/teoljungberg/received_events","type":"User","site_admin":false},"body":"Our previous strategy of relying on postgres to give us the\r\ntriggers/functions in the correct order was incorrect.\r\nThose tables have no specific ordering so the results can come back in\r\nany order.\r\n\r\nOrdering by 'oid' is the simplest way to order everything by insertion\r\norder. Dropping a view that depends on a child view also requires\r\ndropping that child view, so ordering in this manner should be\r\nsufficient.","created_at":"2016-11-16T09:44:34Z","updated_at":"2016-11-16T09:44:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/teoljungberg/fx/pulls/3/commits","review_comments_url":"https://api.github.com/repos/teoljungberg/fx/pulls/3/comments","review_comment_url":"https://api.github.com/repos/teoljungberg/fx/pulls/comments{/number}","comments_url":"https://api.github.com/repos/teoljungberg/fx/issues/3/comments","statuses_url":"https://api.github.com/repos/teoljungberg/fx/statuses/8dc4ddf3ffbf4a724551a267d43fa6ef1c11e033","head":{"label":"teoljungberg:ordering","ref":"ordering","sha":"8dc4ddf3ffbf4a724551a267d43fa6ef1c11e033","user":{"login":"teoljungberg","id":810650,"avatar_url":"https://avatars.githubusercontent.com/u/810650?v=3","gravatar_id":"","url":"https://api.github.com/users/teoljungberg","html_url":"https://github.com/teoljungberg","followers_url":"https://api.github.com/users/teoljungberg/followers","following_url":"https://api.github.com/users/teoljungberg/following{/other_user}","gists_url":"https://api.github.com/users/teoljungberg/gists{/gist_id}","starred_url":"https://api.github.com/users/teoljungberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teoljungberg/subscriptions","organizations_url":"https://api.github.com/users/teoljungberg/orgs","repos_url":"https://api.github.com/users/teoljungberg/repos","events_url":"https://api.github.com/users/teoljungberg/events{/privacy}","received_events_url":"https://api.github.com/users/teoljungberg/received_events","type":"User","site_admin":false},"repo":{"id":61544151,"name":"fx","full_name":"teoljungberg/fx","owner":{"login":"teoljungberg","id":810650,"avatar_url":"https://avatars.githubusercontent.com/u/810650?v=3","gravatar_id":"","url":"https://api.github.com/users/teoljungberg","html_url":"https://github.com/teoljungberg","followers_url":"https://api.github.com/users/teoljungberg/followers","following_url":"https://api.github.com/users/teoljungberg/following{/other_user}","gists_url":"https://api.github.com/users/teoljungberg/gists{/gist_id}","starred_url":"https://api.github.com/users/teoljungberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teoljungberg/subscriptions","organizations_url":"https://api.github.com/users/teoljungberg/orgs","repos_url":"https://api.github.com/users/teoljungberg/repos","events_url":"https://api.github.com/users/teoljungberg/events{/privacy}","received_events_url":"https://api.github.com/users/teoljungberg/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/teoljungberg/fx","description":"Versioned database functions and triggers for Rails","fork":false,"url":"https://api.github.com/repos/teoljungberg/fx","forks_url":"https://api.github.com/repos/teoljungberg/fx/forks","keys_url":"https://api.github.com/repos/teoljungberg/fx/keys{/key_id}","collaborators_url":"https://api.github.com/repos/teoljungberg/fx/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/teoljungberg/fx/teams","hooks_url":"https://api.github.com/repos/teoljungberg/fx/hooks","issue_events_url":"https://api.github.com/repos/teoljungberg/fx/issues/events{/number}","events_url":"https://api.github.com/repos/teoljungberg/fx/events","assignees_url":"https://api.github.com/repos/teoljungberg/fx/assignees{/user}","branches_url":"https://api.github.com/repos/teoljungberg/fx/branches{/branch}","tags_url":"https://api.github.com/repos/teoljungberg/fx/tags","blobs_url":"https://api.github.com/repos/teoljungberg/fx/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/teoljungberg/fx/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/teoljungberg/fx/git/refs{/sha}","trees_url":"https://api.github.com/repos/teoljungberg/fx/git/trees{/sha}","statuses_url":"https://api.github.com/repos/teoljungberg/fx/statuses/{sha}","languages_url":"https://api.github.com/repos/teoljungberg/fx/languages","stargazers_url":"https://api.github.com/repos/teoljungberg/fx/stargazers","contributors_url":"https://api.github.com/repos/teoljungberg/fx/contributors","subscribers_url":"https://api.github.com/repos/teoljungberg/fx/subscribers","subscription_url":"https://api.github.com/repos/teoljungberg/fx/subscription","commits_url":"https://api.github.com/repos/teoljungberg/fx/commits{/sha}","git_commits_url":"https://api.github.com/repos/teoljungberg/fx/git/commits{/sha}","comments_url":"https://api.github.com/repos/teoljungberg/fx/comments{/number}","issue_comment_url":"https://api.github.com/repos/teoljungberg/fx/issues/comments{/number}","contents_url":"https://api.github.com/repos/teoljungberg/fx/contents/{+path}","compare_url":"https://api.github.com/repos/teoljungberg/fx/compare/{base}...{head}","merges_url":"https://api.github.com/repos/teoljungberg/fx/merges","archive_url":"https://api.github.com/repos/teoljungberg/fx/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/teoljungberg/fx/downloads","issues_url":"https://api.github.com/repos/teoljungberg/fx/issues{/number}","pulls_url":"https://api.github.com/repos/teoljungberg/fx/pulls{/number}","milestones_url":"https://api.github.com/repos/teoljungberg/fx/milestones{/number}","notifications_url":"https://api.github.com/repos/teoljungberg/fx/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/teoljungberg/fx/labels{/name}","releases_url":"https://api.github.com/repos/teoljungberg/fx/releases{/id}","deployments_url":"https://api.github.com/repos/teoljungberg/fx/deployments","created_at":"2016-06-20T11:54:45Z","updated_at":"2016-11-14T10:09:50Z","pushed_at":"2016-11-16T09:44:34Z","git_url":"git://github.com/teoljungberg/fx.git","ssh_url":"git@github.com:teoljungberg/fx.git","clone_url":"https://github.com/teoljungberg/fx.git","svn_url":"https://github.com/teoljungberg/fx","homepage":"","size":151,"stargazers_count":6,"watchers_count":6,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":6,"default_branch":"master"}},"base":{"label":"teoljungberg:master","ref":"master","sha":"7f73f9752c356348ec4a83badf8201a70359c7d9","user":{"login":"teoljungberg","id":810650,"avatar_url":"https://avatars.githubusercontent.com/u/810650?v=3","gravatar_id":"","url":"https://api.github.com/users/teoljungberg","html_url":"https://github.com/teoljungberg","followers_url":"https://api.github.com/users/teoljungberg/followers","following_url":"https://api.github.com/users/teoljungberg/following{/other_user}","gists_url":"https://api.github.com/users/teoljungberg/gists{/gist_id}","starred_url":"https://api.github.com/users/teoljungberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teoljungberg/subscriptions","organizations_url":"https://api.github.com/users/teoljungberg/orgs","repos_url":"https://api.github.com/users/teoljungberg/repos","events_url":"https://api.github.com/users/teoljungberg/events{/privacy}","received_events_url":"https://api.github.com/users/teoljungberg/received_events","type":"User","site_admin":false},"repo":{"id":61544151,"name":"fx","full_name":"teoljungberg/fx","owner":{"login":"teoljungberg","id":810650,"avatar_url":"https://avatars.githubusercontent.com/u/810650?v=3","gravatar_id":"","url":"https://api.github.com/users/teoljungberg","html_url":"https://github.com/teoljungberg","followers_url":"https://api.github.com/users/teoljungberg/followers","following_url":"https://api.github.com/users/teoljungberg/following{/other_user}","gists_url":"https://api.github.com/users/teoljungberg/gists{/gist_id}","starred_url":"https://api.github.com/users/teoljungberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teoljungberg/subscriptions","organizations_url":"https://api.github.com/users/teoljungberg/orgs","repos_url":"https://api.github.com/users/teoljungberg/repos","events_url":"https://api.github.com/users/teoljungberg/events{/privacy}","received_events_url":"https://api.github.com/users/teoljungberg/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/teoljungberg/fx","description":"Versioned database functions and triggers for Rails","fork":false,"url":"https://api.github.com/repos/teoljungberg/fx","forks_url":"https://api.github.com/repos/teoljungberg/fx/forks","keys_url":"https://api.github.com/repos/teoljungberg/fx/keys{/key_id}","collaborators_url":"https://api.github.com/repos/teoljungberg/fx/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/teoljungberg/fx/teams","hooks_url":"https://api.github.com/repos/teoljungberg/fx/hooks","issue_events_url":"https://api.github.com/repos/teoljungberg/fx/issues/events{/number}","events_url":"https://api.github.com/repos/teoljungberg/fx/events","assignees_url":"https://api.github.com/repos/teoljungberg/fx/assignees{/user}","branches_url":"https://api.github.com/repos/teoljungberg/fx/branches{/branch}","tags_url":"https://api.github.com/repos/teoljungberg/fx/tags","blobs_url":"https://api.github.com/repos/teoljungberg/fx/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/teoljungberg/fx/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/teoljungberg/fx/git/refs{/sha}","trees_url":"https://api.github.com/repos/teoljungberg/fx/git/trees{/sha}","statuses_url":"https://api.github.com/repos/teoljungberg/fx/statuses/{sha}","languages_url":"https://api.github.com/repos/teoljungberg/fx/languages","stargazers_url":"https://api.github.com/repos/teoljungberg/fx/stargazers","contributors_url":"https://api.github.com/repos/teoljungberg/fx/contributors","subscribers_url":"https://api.github.com/repos/teoljungberg/fx/subscribers","subscription_url":"https://api.github.com/repos/teoljungberg/fx/subscription","commits_url":"https://api.github.com/repos/teoljungberg/fx/commits{/sha}","git_commits_url":"https://api.github.com/repos/teoljungberg/fx/git/commits{/sha}","comments_url":"https://api.github.com/repos/teoljungberg/fx/comments{/number}","issue_comment_url":"https://api.github.com/repos/teoljungberg/fx/issues/comments{/number}","contents_url":"https://api.github.com/repos/teoljungberg/fx/contents/{+path}","compare_url":"https://api.github.com/repos/teoljungberg/fx/compare/{base}...{head}","merges_url":"https://api.github.com/repos/teoljungberg/fx/merges","archive_url":"https://api.github.com/repos/teoljungberg/fx/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/teoljungberg/fx/downloads","issues_url":"https://api.github.com/repos/teoljungberg/fx/issues{/number}","pulls_url":"https://api.github.com/repos/teoljungberg/fx/pulls{/number}","milestones_url":"https://api.github.com/repos/teoljungberg/fx/milestones{/number}","notifications_url":"https://api.github.com/repos/teoljungberg/fx/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/teoljungberg/fx/labels{/name}","releases_url":"https://api.github.com/repos/teoljungberg/fx/releases{/id}","deployments_url":"https://api.github.com/repos/teoljungberg/fx/deployments","created_at":"2016-06-20T11:54:45Z","updated_at":"2016-11-14T10:09:50Z","pushed_at":"2016-11-16T09:44:34Z","git_url":"git://github.com/teoljungberg/fx.git","ssh_url":"git@github.com:teoljungberg/fx.git","clone_url":"https://github.com/teoljungberg/fx.git","svn_url":"https://github.com/teoljungberg/fx","homepage":"","size":151,"stargazers_count":6,"watchers_count":6,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/teoljungberg/fx/pulls/3"},"html":{"href":"https://github.com/teoljungberg/fx/pull/3"},"issue":{"href":"https://api.github.com/repos/teoljungberg/fx/issues/3"},"comments":{"href":"https://api.github.com/repos/teoljungberg/fx/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/teoljungberg/fx/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/teoljungberg/fx/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/teoljungberg/fx/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/teoljungberg/fx/statuses/8dc4ddf3ffbf4a724551a267d43fa6ef1c11e033"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":4,"deletions":2,"changed_files":2}}
{"actor":{"display_login":"teoljungberg"}}