{"action":"created","comment":{"url":"https://api.github.com/repos/dalexo/AcademicManager/pulls/comments/109838878","pull_request_review_id":30964990,"id":109838878,"diff_hunk":"@@ -124,3 +125,23 @@ ALTER TABLE `course`\n --\n ALTER TABLE `person`\n   MODIFY `personId` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;\n+\n+\n+-- DROP the columns below as requested by G.Metaxas\n+ALTER TABLE person DROP username,DROP password;","path":"DB/academicmanager.sql","position":55,"original_position":55,"commit_id":"c2b4b232376c044269728ee5d977e88e84c2d833","original_commit_id":"c2b4b232376c044269728ee5d977e88e84c2d833","user":{"login":"gmetal","id":1078315,"avatar_url":"https://avatars0.githubusercontent.com/u/1078315?v=3","gravatar_id":"","url":"https://api.github.com/users/gmetal","html_url":"https://github.com/gmetal","followers_url":"https://api.github.com/users/gmetal/followers","following_url":"https://api.github.com/users/gmetal/following{/other_user}","gists_url":"https://api.github.com/users/gmetal/gists{/gist_id}","starred_url":"https://api.github.com/users/gmetal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gmetal/subscriptions","organizations_url":"https://api.github.com/users/gmetal/orgs","repos_url":"https://api.github.com/users/gmetal/repos","events_url":"https://api.github.com/users/gmetal/events{/privacy}","received_events_url":"https://api.github.com/users/gmetal/received_events","type":"User","site_admin":false},"body":"Split this into two separate statements and add an if exists condition: eg ALTER TABLE Person DROP COLUMN IF EXISTS USERNAME:","created_at":"2017-04-05T06:34:28Z","updated_at":"2017-04-05T06:34:53Z","html_url":"https://github.com/dalexo/AcademicManager/pull/33#discussion_r109838878","pull_request_url":"https://api.github.com/repos/dalexo/AcademicManager/pulls/33","_links":{"self":{"href":"https://api.github.com/repos/dalexo/AcademicManager/pulls/comments/109838878"},"html":{"href":"https://github.com/dalexo/AcademicManager/pull/33#discussion_r109838878"},"pull_request":{"href":"https://api.github.com/repos/dalexo/AcademicManager/pulls/33"}}},"pull_request":{"url":"https://api.github.com/repos/dalexo/AcademicManager/pulls/33","id":114236424,"html_url":"https://github.com/dalexo/AcademicManager/pull/33","diff_url":"https://github.com/dalexo/AcademicManager/pull/33.diff","patch_url":"https://github.com/dalexo/AcademicManager/pull/33.patch","issue_url":"https://api.github.com/repos/dalexo/AcademicManager/issues/33","number":33,"state":"open","locked":false,"title":"More sql queries to:","user":{"login":"cthanos","id":25271761,"avatar_url":"https://avatars3.githubusercontent.com/u/25271761?v=3","gravatar_id":"","url":"https://api.github.com/users/cthanos","html_url":"https://github.com/cthanos","followers_url":"https://api.github.com/users/cthanos/followers","following_url":"https://api.github.com/users/cthanos/following{/other_user}","gists_url":"https://api.github.com/users/cthanos/gists{/gist_id}","starred_url":"https://api.github.com/users/cthanos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cthanos/subscriptions","organizations_url":"https://api.github.com/users/cthanos/orgs","repos_url":"https://api.github.com/users/cthanos/repos","events_url":"https://api.github.com/users/cthanos/events{/privacy}","received_events_url":"https://api.github.com/users/cthanos/received_events","type":"User","site_admin":false},"body":"Create table users & drop columns 'username' and 'password' from table person","created_at":"2017-04-04T20:27:24Z","updated_at":"2017-04-05T06:34:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1e0f1be13fb4fa248f652ed802e11193a68d1781","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/dalexo/AcademicManager/pulls/33/commits","review_comments_url":"https://api.github.com/repos/dalexo/AcademicManager/pulls/33/comments","review_comment_url":"https://api.github.com/repos/dalexo/AcademicManager/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dalexo/AcademicManager/issues/33/comments","statuses_url":"https://api.github.com/repos/dalexo/AcademicManager/statuses/c2b4b232376c044269728ee5d977e88e84c2d833","head":{"label":"cthanos:master","ref":"master","sha":"c2b4b232376c044269728ee5d977e88e84c2d833","user":{"login":"cthanos","id":25271761,"avatar_url":"https://avatars3.githubusercontent.com/u/25271761?v=3","gravatar_id":"","url":"https://api.github.com/users/cthanos","html_url":"https://github.com/cthanos","followers_url":"https://api.github.com/users/cthanos/followers","following_url":"https://api.github.com/users/cthanos/following{/other_user}","gists_url":"https://api.github.com/users/cthanos/gists{/gist_id}","starred_url":"https://api.github.com/users/cthanos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cthanos/subscriptions","organizations_url":"https://api.github.com/users/cthanos/orgs","repos_url":"https://api.github.com/users/cthanos/repos","events_url":"https://api.github.com/users/cthanos/events{/privacy}","received_events_url":"https://api.github.com/users/cthanos/received_events","type":"User","site_admin":false},"repo":{"id":82182614,"name":"AcademicManager","full_name":"cthanos/AcademicManager","owner":{"login":"cthanos","id":25271761,"avatar_url":"https://avatars3.githubusercontent.com/u/25271761?v=3","gravatar_id":"","url":"https://api.github.com/users/cthanos","html_url":"https://github.com/cthanos","followers_url":"https://api.github.com/users/cthanos/followers","following_url":"https://api.github.com/users/cthanos/following{/other_user}","gists_url":"https://api.github.com/users/cthanos/gists{/gist_id}","starred_url":"https://api.github.com/users/cthanos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cthanos/subscriptions","organizations_url":"https://api.github.com/users/cthanos/orgs","repos_url":"https://api.github.com/users/cthanos/repos","events_url":"https://api.github.com/users/cthanos/events{/privacy}","received_events_url":"https://api.github.com/users/cthanos/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cthanos/AcademicManager","description":null,"fork":true,"url":"https://api.github.com/repos/cthanos/AcademicManager","forks_url":"https://api.github.com/repos/cthanos/AcademicManager/forks","keys_url":"https://api.github.com/repos/cthanos/AcademicManager/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cthanos/AcademicManager/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cthanos/AcademicManager/teams","hooks_url":"https://api.github.com/repos/cthanos/AcademicManager/hooks","issue_events_url":"https://api.github.com/repos/cthanos/AcademicManager/issues/events{/number}","events_url":"https://api.github.com/repos/cthanos/AcademicManager/events","assignees_url":"https://api.github.com/repos/cthanos/AcademicManager/assignees{/user}","branches_url":"https://api.github.com/repos/cthanos/AcademicManager/branches{/branch}","tags_url":"https://api.github.com/repos/cthanos/AcademicManager/tags","blobs_url":"https://api.github.com/repos/cthanos/AcademicManager/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cthanos/AcademicManager/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cthanos/AcademicManager/git/refs{/sha}","trees_url":"https://api.github.com/repos/cthanos/AcademicManager/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cthanos/AcademicManager/statuses/{sha}","languages_url":"https://api.github.com/repos/cthanos/AcademicManager/languages","stargazers_url":"https://api.github.com/repos/cthanos/AcademicManager/stargazers","contributors_url":"https://api.github.com/repos/cthanos/AcademicManager/contributors","subscribers_url":"https://api.github.com/repos/cthanos/AcademicManager/subscribers","subscription_url":"https://api.github.com/repos/cthanos/AcademicManager/subscription","commits_url":"https://api.github.com/repos/cthanos/AcademicManager/commits{/sha}","git_commits_url":"https://api.github.com/repos/cthanos/AcademicManager/git/commits{/sha}","comments_url":"https://api.github.com/repos/cthanos/AcademicManager/comments{/number}","issue_comment_url":"https://api.github.com/repos/cthanos/AcademicManager/issues/comments{/number}","contents_url":"https://api.github.com/repos/cthanos/AcademicManager/contents/{+path}","compare_url":"https://api.github.com/repos/cthanos/AcademicManager/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cthanos/AcademicManager/merges","archive_url":"https://api.github.com/repos/cthanos/AcademicManager/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cthanos/AcademicManager/downloads","issues_url":"https://api.github.com/repos/cthanos/AcademicManager/issues{/number}","pulls_url":"https://api.github.com/repos/cthanos/AcademicManager/pulls{/number}","milestones_url":"https://api.github.com/repos/cthanos/AcademicManager/milestones{/number}","notifications_url":"https://api.github.com/repos/cthanos/AcademicManager/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cthanos/AcademicManager/labels{/name}","releases_url":"https://api.github.com/repos/cthanos/AcademicManager/releases{/id}","deployments_url":"https://api.github.com/repos/cthanos/AcademicManager/deployments","created_at":"2017-02-16T13:18:26Z","updated_at":"2017-03-16T13:28:46Z","pushed_at":"2017-04-04T20:26:32Z","git_url":"git://github.com/cthanos/AcademicManager.git","ssh_url":"git@github.com:cthanos/AcademicManager.git","clone_url":"https://github.com/cthanos/AcademicManager.git","svn_url":"https://github.com/cthanos/AcademicManager","homepage":null,"size":10660,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"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":"dalexo:master","ref":"master","sha":"1dc7830763309b44c7eff358937258c96d0bee82","user":{"login":"dalexo","id":14092191,"avatar_url":"https://avatars0.githubusercontent.com/u/14092191?v=3","gravatar_id":"","url":"https://api.github.com/users/dalexo","html_url":"https://github.com/dalexo","followers_url":"https://api.github.com/users/dalexo/followers","following_url":"https://api.github.com/users/dalexo/following{/other_user}","gists_url":"https://api.github.com/users/dalexo/gists{/gist_id}","starred_url":"https://api.github.com/users/dalexo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dalexo/subscriptions","organizations_url":"https://api.github.com/users/dalexo/orgs","repos_url":"https://api.github.com/users/dalexo/repos","events_url":"https://api.github.com/users/dalexo/events{/privacy}","received_events_url":"https://api.github.com/users/dalexo/received_events","type":"User","site_admin":false},"repo":{"id":79535352,"name":"AcademicManager","full_name":"dalexo/AcademicManager","owner":{"login":"dalexo","id":14092191,"avatar_url":"https://avatars0.githubusercontent.com/u/14092191?v=3","gravatar_id":"","url":"https://api.github.com/users/dalexo","html_url":"https://github.com/dalexo","followers_url":"https://api.github.com/users/dalexo/followers","following_url":"https://api.github.com/users/dalexo/following{/other_user}","gists_url":"https://api.github.com/users/dalexo/gists{/gist_id}","starred_url":"https://api.github.com/users/dalexo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dalexo/subscriptions","organizations_url":"https://api.github.com/users/dalexo/orgs","repos_url":"https://api.github.com/users/dalexo/repos","events_url":"https://api.github.com/users/dalexo/events{/privacy}","received_events_url":"https://api.github.com/users/dalexo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dalexo/AcademicManager","description":null,"fork":false,"url":"https://api.github.com/repos/dalexo/AcademicManager","forks_url":"https://api.github.com/repos/dalexo/AcademicManager/forks","keys_url":"https://api.github.com/repos/dalexo/AcademicManager/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dalexo/AcademicManager/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dalexo/AcademicManager/teams","hooks_url":"https://api.github.com/repos/dalexo/AcademicManager/hooks","issue_events_url":"https://api.github.com/repos/dalexo/AcademicManager/issues/events{/number}","events_url":"https://api.github.com/repos/dalexo/AcademicManager/events","assignees_url":"https://api.github.com/repos/dalexo/AcademicManager/assignees{/user}","branches_url":"https://api.github.com/repos/dalexo/AcademicManager/branches{/branch}","tags_url":"https://api.github.com/repos/dalexo/AcademicManager/tags","blobs_url":"https://api.github.com/repos/dalexo/AcademicManager/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dalexo/AcademicManager/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dalexo/AcademicManager/git/refs{/sha}","trees_url":"https://api.github.com/repos/dalexo/AcademicManager/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dalexo/AcademicManager/statuses/{sha}","languages_url":"https://api.github.com/repos/dalexo/AcademicManager/languages","stargazers_url":"https://api.github.com/repos/dalexo/AcademicManager/stargazers","contributors_url":"https://api.github.com/repos/dalexo/AcademicManager/contributors","subscribers_url":"https://api.github.com/repos/dalexo/AcademicManager/subscribers","subscription_url":"https://api.github.com/repos/dalexo/AcademicManager/subscription","commits_url":"https://api.github.com/repos/dalexo/AcademicManager/commits{/sha}","git_commits_url":"https://api.github.com/repos/dalexo/AcademicManager/git/commits{/sha}","comments_url":"https://api.github.com/repos/dalexo/AcademicManager/comments{/number}","issue_comment_url":"https://api.github.com/repos/dalexo/AcademicManager/issues/comments{/number}","contents_url":"https://api.github.com/repos/dalexo/AcademicManager/contents/{+path}","compare_url":"https://api.github.com/repos/dalexo/AcademicManager/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dalexo/AcademicManager/merges","archive_url":"https://api.github.com/repos/dalexo/AcademicManager/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dalexo/AcademicManager/downloads","issues_url":"https://api.github.com/repos/dalexo/AcademicManager/issues{/number}","pulls_url":"https://api.github.com/repos/dalexo/AcademicManager/pulls{/number}","milestones_url":"https://api.github.com/repos/dalexo/AcademicManager/milestones{/number}","notifications_url":"https://api.github.com/repos/dalexo/AcademicManager/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dalexo/AcademicManager/labels{/name}","releases_url":"https://api.github.com/repos/dalexo/AcademicManager/releases{/id}","deployments_url":"https://api.github.com/repos/dalexo/AcademicManager/deployments","created_at":"2017-01-20T07:13:09Z","updated_at":"2017-03-02T15:05:24Z","pushed_at":"2017-04-04T20:27:25Z","git_url":"git://github.com/dalexo/AcademicManager.git","ssh_url":"git@github.com:dalexo/AcademicManager.git","clone_url":"https://github.com/dalexo/AcademicManager.git","svn_url":"https://github.com/dalexo/AcademicManager","homepage":null,"size":11472,"stargazers_count":4,"watchers_count":4,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":1,"forks":12,"open_issues":1,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dalexo/AcademicManager/pulls/33"},"html":{"href":"https://github.com/dalexo/AcademicManager/pull/33"},"issue":{"href":"https://api.github.com/repos/dalexo/AcademicManager/issues/33"},"comments":{"href":"https://api.github.com/repos/dalexo/AcademicManager/issues/33/comments"},"review_comments":{"href":"https://api.github.com/repos/dalexo/AcademicManager/pulls/33/comments"},"review_comment":{"href":"https://api.github.com/repos/dalexo/AcademicManager/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dalexo/AcademicManager/pulls/33/commits"},"statuses":{"href":"https://api.github.com/repos/dalexo/AcademicManager/statuses/c2b4b232376c044269728ee5d977e88e84c2d833"}}}}
{"actor":{"display_login":"gmetal"}}