{"action":"created","comment":{"url":"https://api.github.com/repos/Frank-Shanghai/PencilCase/pulls/comments/187939785","pull_request_review_id":119817309,"id":187939785,"diff_hunk":"@@ -109,12 +113,25 @@ export class Application {\n                                         CreatedDate datetime,\\\n                                         ModifiedDate datetime,\\\n                                         foreign key(RetailUnit) references UnitOfMeasure(Id),\\\n-                                        foreign key(WholesaleUnit) references UnnitOfMeasure(Id)\\\n+                                        foreign key(WholesaleUnit) references UnitOfMeasure(Id)\\\n+                                        )', [], null, this.onDBError);\n+\n+                // I have to name the table as Orders instead of Order, because Order is a reserved word by SQL Lite, it did took me some time\n+                // https://www.sqlite.org/lang_keywords.html\n+                //transaction.executeSql('DROP TABLE IF EXISTS Orders', [], null, this.onDBError);\n+                transaction.executeSql('CREATE TABLE Orders (\\","path":"PencilCase/PencilCase/scripts/application.ts","position":22,"original_position":22,"commit_id":"ae7a585bbba4a40abc68b4ea393ef5b202d13f76","original_commit_id":"ae7a585bbba4a40abc68b4ea393ef5b202d13f76","user":{"login":"Frank-Shanghai","id":13045680,"avatar_url":"https://avatars1.githubusercontent.com/u/13045680?v=4","gravatar_id":"","url":"https://api.github.com/users/Frank-Shanghai","html_url":"https://github.com/Frank-Shanghai","followers_url":"https://api.github.com/users/Frank-Shanghai/followers","following_url":"https://api.github.com/users/Frank-Shanghai/following{/other_user}","gists_url":"https://api.github.com/users/Frank-Shanghai/gists{/gist_id}","starred_url":"https://api.github.com/users/Frank-Shanghai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Frank-Shanghai/subscriptions","organizations_url":"https://api.github.com/users/Frank-Shanghai/orgs","repos_url":"https://api.github.com/users/Frank-Shanghai/repos","events_url":"https://api.github.com/users/Frank-Shanghai/events{/privacy}","received_events_url":"https://api.github.com/users/Frank-Shanghai/received_events","type":"User","site_admin":false},"body":"Create \"Orders\" table. \r\nNote that it's \"Orders\" but not \"Order\", since \"Order\" is a reserved key word for SQL Lite. Maybe the order by syntax.","created_at":"2018-05-14T12:47:53Z","updated_at":"2018-05-14T12:47:54Z","html_url":"https://github.com/Frank-Shanghai/PencilCase/pull/21#discussion_r187939785","pull_request_url":"https://api.github.com/repos/Frank-Shanghai/PencilCase/pulls/21","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/Frank-Shanghai/PencilCase/pulls/comments/187939785"},"html":{"href":"https://github.com/Frank-Shanghai/PencilCase/pull/21#discussion_r187939785"},"pull_request":{"href":"https://api.github.com/repos/Frank-Shanghai/PencilCase/pulls/21"}}},"pull_request":{"url":"https://api.github.com/repos/Frank-Shanghai/PencilCase/pulls/21","id":187815330,"html_url":"https://github.com/Frank-Shanghai/PencilCase/pull/21","diff_url":"https://github.com/Frank-Shanghai/PencilCase/pull/21.diff","patch_url":"https://github.com/Frank-Shanghai/PencilCase/pull/21.patch","issue_url":"https://api.github.com/repos/Frank-Shanghai/PencilCase/issues/21","number":21,"state":"open","locked":false,"title":"Feature/#13    #20 create order table","user":{"login":"Frank-Shanghai","id":13045680,"avatar_url":"https://avatars1.githubusercontent.com/u/13045680?v=4","gravatar_id":"","url":"https://api.github.com/users/Frank-Shanghai","html_url":"https://github.com/Frank-Shanghai","followers_url":"https://api.github.com/users/Frank-Shanghai/followers","following_url":"https://api.github.com/users/Frank-Shanghai/following{/other_user}","gists_url":"https://api.github.com/users/Frank-Shanghai/gists{/gist_id}","starred_url":"https://api.github.com/users/Frank-Shanghai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Frank-Shanghai/subscriptions","organizations_url":"https://api.github.com/users/Frank-Shanghai/orgs","repos_url":"https://api.github.com/users/Frank-Shanghai/repos","events_url":"https://api.github.com/users/Frank-Shanghai/events{/privacy}","received_events_url":"https://api.github.com/users/Frank-Shanghai/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-05-14T12:46:00Z","updated_at":"2018-05-14T12:47:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2bfeb13165298f7c0ff328d723bf4f8455d2495c","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Frank-Shanghai/PencilCase/pulls/21/commits","review_comments_url":"https://api.github.com/repos/Frank-Shanghai/PencilCase/pulls/21/comments","review_comment_url":"https://api.github.com/repos/Frank-Shanghai/PencilCase/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Frank-Shanghai/PencilCase/issues/21/comments","statuses_url":"https://api.github.com/repos/Frank-Shanghai/PencilCase/statuses/ae7a585bbba4a40abc68b4ea393ef5b202d13f76","head":{"label":"Frank-Shanghai:feature/#13_--_#20_Create_Order_Table","ref":"feature/#13_--_#20_Create_Order_Table","sha":"ae7a585bbba4a40abc68b4ea393ef5b202d13f76","user":{"login":"Frank-Shanghai","id":13045680,"avatar_url":"https://avatars1.githubusercontent.com/u/13045680?v=4","gravatar_id":"","url":"https://api.github.com/users/Frank-Shanghai","html_url":"https://github.com/Frank-Shanghai","followers_url":"https://api.github.com/users/Frank-Shanghai/followers","following_url":"https://api.github.com/users/Frank-Shanghai/following{/other_user}","gists_url":"https://api.github.com/users/Frank-Shanghai/gists{/gist_id}","starred_url":"https://api.github.com/users/Frank-Shanghai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Frank-Shanghai/subscriptions","organizations_url":"https://api.github.com/users/Frank-Shanghai/orgs","repos_url":"https://api.github.com/users/Frank-Shanghai/repos","events_url":"https://api.github.com/users/Frank-Shanghai/events{/privacy}","received_events_url":"https://api.github.com/users/Frank-Shanghai/received_events","type":"User","site_admin":false},"repo":{"id":129749211,"name":"PencilCase","full_name":"Frank-Shanghai/PencilCase","owner":{"login":"Frank-Shanghai","id":13045680,"avatar_url":"https://avatars1.githubusercontent.com/u/13045680?v=4","gravatar_id":"","url":"https://api.github.com/users/Frank-Shanghai","html_url":"https://github.com/Frank-Shanghai","followers_url":"https://api.github.com/users/Frank-Shanghai/followers","following_url":"https://api.github.com/users/Frank-Shanghai/following{/other_user}","gists_url":"https://api.github.com/users/Frank-Shanghai/gists{/gist_id}","starred_url":"https://api.github.com/users/Frank-Shanghai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Frank-Shanghai/subscriptions","organizations_url":"https://api.github.com/users/Frank-Shanghai/orgs","repos_url":"https://api.github.com/users/Frank-Shanghai/repos","events_url":"https://api.github.com/users/Frank-Shanghai/events{/privacy}","received_events_url":"https://api.github.com/users/Frank-Shanghai/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Frank-Shanghai/PencilCase","description":null,"fork":false,"url":"https://api.github.com/repos/Frank-Shanghai/PencilCase","forks_url":"https://api.github.com/repos/Frank-Shanghai/PencilCase/forks","keys_url":"https://api.github.com/repos/Frank-Shanghai/PencilCase/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Frank-Shanghai/PencilCase/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Frank-Shanghai/PencilCase/teams","hooks_url":"https://api.github.com/repos/Frank-Shanghai/PencilCase/hooks","issue_events_url":"https://api.github.com/repos/Frank-Shanghai/PencilCase/issues/events{/number}","events_url":"https://api.github.com/repos/Frank-Shanghai/PencilCase/events","assignees_url":"https://api.github.com/repos/Frank-Shanghai/PencilCase/assignees{/user}","branches_url":"https://api.github.com/repos/Frank-Shanghai/PencilCase/branches{/branch}","tags_url":"https://api.github.com/repos/Frank-Shanghai/PencilCase/tags","blobs_url":"https://api.github.com/repos/Frank-Shanghai/PencilCase/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Frank-Shanghai/PencilCase/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Frank-Shanghai/PencilCase/git/refs{/sha}","trees_url":"https://api.github.com/repos/Frank-Shanghai/PencilCase/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Frank-Shanghai/PencilCase/statuses/{sha}","languages_url":"https://api.github.com/repos/Frank-Shanghai/PencilCase/languages","stargazers_url":"https://api.github.com/repos/Frank-Shanghai/PencilCase/stargazers","contributors_url":"https://api.github.com/repos/Frank-Shanghai/PencilCase/contributors","subscribers_url":"https://api.github.com/repos/Frank-Shanghai/PencilCase/subscribers","subscription_url":"https://api.github.com/repos/Frank-Shanghai/PencilCase/subscription","commits_url":"https://api.github.com/repos/Frank-Shanghai/PencilCase/commits{/sha}","git_commits_url":"https://api.github.com/repos/Frank-Shanghai/PencilCase/git/commits{/sha}","comments_url":"https://api.github.com/repos/Frank-Shanghai/PencilCase/comments{/number}","issue_comment_url":"https://api.github.com/repos/Frank-Shanghai/PencilCase/issues/comments{/number}","contents_url":"https://api.github.com/repos/Frank-Shanghai/PencilCase/contents/{+path}","compare_url":"https://api.github.com/repos/Frank-Shanghai/PencilCase/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Frank-Shanghai/PencilCase/merges","archive_url":"https://api.github.com/repos/Frank-Shanghai/PencilCase/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Frank-Shanghai/PencilCase/downloads","issues_url":"https://api.github.com/repos/Frank-Shanghai/PencilCase/issues{/number}","pulls_url":"https://api.github.com/repos/Frank-Shanghai/PencilCase/pulls{/number}","milestones_url":"https://api.github.com/repos/Frank-Shanghai/PencilCase/milestones{/number}","notifications_url":"https://api.github.com/repos/Frank-Shanghai/PencilCase/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Frank-Shanghai/PencilCase/labels{/name}","releases_url":"https://api.github.com/repos/Frank-Shanghai/PencilCase/releases{/id}","deployments_url":"https://api.github.com/repos/Frank-Shanghai/PencilCase/deployments","created_at":"2018-04-16T13:38:15Z","updated_at":"2018-05-12T09:10:34Z","pushed_at":"2018-05-14T12:46:01Z","git_url":"git://github.com/Frank-Shanghai/PencilCase.git","ssh_url":"git@github.com:Frank-Shanghai/PencilCase.git","clone_url":"https://github.com/Frank-Shanghai/PencilCase.git","svn_url":"https://github.com/Frank-Shanghai/PencilCase","homepage":null,"size":1821,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":5,"license":null,"forks":0,"open_issues":5,"watchers":0,"default_branch":"master"}},"base":{"label":"Frank-Shanghai:feature/#13_Feature_-_Import_Product","ref":"feature/#13_Feature_-_Import_Product","sha":"a9252652813f00217fe1b8d557436c8e9c289df8","user":{"login":"Frank-Shanghai","id":13045680,"avatar_url":"https://avatars1.githubusercontent.com/u/13045680?v=4","gravatar_id":"","url":"https://api.github.com/users/Frank-Shanghai","html_url":"https://github.com/Frank-Shanghai","followers_url":"https://api.github.com/users/Frank-Shanghai/followers","following_url":"https://api.github.com/users/Frank-Shanghai/following{/other_user}","gists_url":"https://api.github.com/users/Frank-Shanghai/gists{/gist_id}","starred_url":"https://api.github.com/users/Frank-Shanghai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Frank-Shanghai/subscriptions","organizations_url":"https://api.github.com/users/Frank-Shanghai/orgs","repos_url":"https://api.github.com/users/Frank-Shanghai/repos","events_url":"https://api.github.com/users/Frank-Shanghai/events{/privacy}","received_events_url":"https://api.github.com/users/Frank-Shanghai/received_events","type":"User","site_admin":false},"repo":{"id":129749211,"name":"PencilCase","full_name":"Frank-Shanghai/PencilCase","owner":{"login":"Frank-Shanghai","id":13045680,"avatar_url":"https://avatars1.githubusercontent.com/u/13045680?v=4","gravatar_id":"","url":"https://api.github.com/users/Frank-Shanghai","html_url":"https://github.com/Frank-Shanghai","followers_url":"https://api.github.com/users/Frank-Shanghai/followers","following_url":"https://api.github.com/users/Frank-Shanghai/following{/other_user}","gists_url":"https://api.github.com/users/Frank-Shanghai/gists{/gist_id}","starred_url":"https://api.github.com/users/Frank-Shanghai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Frank-Shanghai/subscriptions","organizations_url":"https://api.github.com/users/Frank-Shanghai/orgs","repos_url":"https://api.github.com/users/Frank-Shanghai/repos","events_url":"https://api.github.com/users/Frank-Shanghai/events{/privacy}","received_events_url":"https://api.github.com/users/Frank-Shanghai/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Frank-Shanghai/PencilCase","description":null,"fork":false,"url":"https://api.github.com/repos/Frank-Shanghai/PencilCase","forks_url":"https://api.github.com/repos/Frank-Shanghai/PencilCase/forks","keys_url":"https://api.github.com/repos/Frank-Shanghai/PencilCase/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Frank-Shanghai/PencilCase/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Frank-Shanghai/PencilCase/teams","hooks_url":"https://api.github.com/repos/Frank-Shanghai/PencilCase/hooks","issue_events_url":"https://api.github.com/repos/Frank-Shanghai/PencilCase/issues/events{/number}","events_url":"https://api.github.com/repos/Frank-Shanghai/PencilCase/events","assignees_url":"https://api.github.com/repos/Frank-Shanghai/PencilCase/assignees{/user}","branches_url":"https://api.github.com/repos/Frank-Shanghai/PencilCase/branches{/branch}","tags_url":"https://api.github.com/repos/Frank-Shanghai/PencilCase/tags","blobs_url":"https://api.github.com/repos/Frank-Shanghai/PencilCase/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Frank-Shanghai/PencilCase/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Frank-Shanghai/PencilCase/git/refs{/sha}","trees_url":"https://api.github.com/repos/Frank-Shanghai/PencilCase/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Frank-Shanghai/PencilCase/statuses/{sha}","languages_url":"https://api.github.com/repos/Frank-Shanghai/PencilCase/languages","stargazers_url":"https://api.github.com/repos/Frank-Shanghai/PencilCase/stargazers","contributors_url":"https://api.github.com/repos/Frank-Shanghai/PencilCase/contributors","subscribers_url":"https://api.github.com/repos/Frank-Shanghai/PencilCase/subscribers","subscription_url":"https://api.github.com/repos/Frank-Shanghai/PencilCase/subscription","commits_url":"https://api.github.com/repos/Frank-Shanghai/PencilCase/commits{/sha}","git_commits_url":"https://api.github.com/repos/Frank-Shanghai/PencilCase/git/commits{/sha}","comments_url":"https://api.github.com/repos/Frank-Shanghai/PencilCase/comments{/number}","issue_comment_url":"https://api.github.com/repos/Frank-Shanghai/PencilCase/issues/comments{/number}","contents_url":"https://api.github.com/repos/Frank-Shanghai/PencilCase/contents/{+path}","compare_url":"https://api.github.com/repos/Frank-Shanghai/PencilCase/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Frank-Shanghai/PencilCase/merges","archive_url":"https://api.github.com/repos/Frank-Shanghai/PencilCase/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Frank-Shanghai/PencilCase/downloads","issues_url":"https://api.github.com/repos/Frank-Shanghai/PencilCase/issues{/number}","pulls_url":"https://api.github.com/repos/Frank-Shanghai/PencilCase/pulls{/number}","milestones_url":"https://api.github.com/repos/Frank-Shanghai/PencilCase/milestones{/number}","notifications_url":"https://api.github.com/repos/Frank-Shanghai/PencilCase/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Frank-Shanghai/PencilCase/labels{/name}","releases_url":"https://api.github.com/repos/Frank-Shanghai/PencilCase/releases{/id}","deployments_url":"https://api.github.com/repos/Frank-Shanghai/PencilCase/deployments","created_at":"2018-04-16T13:38:15Z","updated_at":"2018-05-12T09:10:34Z","pushed_at":"2018-05-14T12:46:01Z","git_url":"git://github.com/Frank-Shanghai/PencilCase.git","ssh_url":"git@github.com:Frank-Shanghai/PencilCase.git","clone_url":"https://github.com/Frank-Shanghai/PencilCase.git","svn_url":"https://github.com/Frank-Shanghai/PencilCase","homepage":null,"size":1821,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":5,"license":null,"forks":0,"open_issues":5,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Frank-Shanghai/PencilCase/pulls/21"},"html":{"href":"https://github.com/Frank-Shanghai/PencilCase/pull/21"},"issue":{"href":"https://api.github.com/repos/Frank-Shanghai/PencilCase/issues/21"},"comments":{"href":"https://api.github.com/repos/Frank-Shanghai/PencilCase/issues/21/comments"},"review_comments":{"href":"https://api.github.com/repos/Frank-Shanghai/PencilCase/pulls/21/comments"},"review_comment":{"href":"https://api.github.com/repos/Frank-Shanghai/PencilCase/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Frank-Shanghai/PencilCase/pulls/21/commits"},"statuses":{"href":"https://api.github.com/repos/Frank-Shanghai/PencilCase/statuses/ae7a585bbba4a40abc68b4ea393ef5b202d13f76"}},"author_association":"OWNER"}}
{"actor":{"display_login":"Frank-Shanghai"}}