{"action":"created","comment":{"url":"https://api.github.com/repos/campudus/tableaux/pulls/comments/32097209","id":32097209,"diff_hunk":"@@ -78,47 +35,47 @@ class ColumnStructure(val connection: DatabaseConnection) extends DatabaseQuery\n     linkId <- Future.successful { insertNotNull(result).head.get[IdType](0) }\n     (t, _) <- t.query(s\"\"\"\n                     |INSERT INTO system_columns (table_id, column_id, column_type, user_column_name, ordering, link_id) VALUES (\n-                    |  ?, \n-                    |  nextval('system_columns_column_id_table_$toTableId'), \n+                    |  ?,\n+                    |  nextval('system_columns_column_id_table_$toTableId'),\n                     |  'link',\n-                    |  ?, \n-                    |  currval('system_columns_column_id_table_$toTableId'), \n+                    |  ?,\n+                    |  currval('system_columns_column_id_table_$toTableId'),\n                     |  ?)\"\"\".stripMargin,\n       Json.arr(toTableId, name, linkId))\n     (t, result) <- ordering match {\n       case None => t.query(s\"\"\"\n                     |INSERT INTO system_columns (table_id, column_id, column_type, user_column_name, ordering, link_id) VALUES (\n-                    |  ?, \n-                    |  nextval('system_columns_column_id_table_$tableId'), \n+                    |  ?,\n+                    |  nextval('system_columns_column_id_table_$tableId'),\n                     |  'link',\n-                    |  ?, \n-                    |  currval('system_columns_column_id_table_$tableId'), \n+                    |  ?,\n+                    |  currval('system_columns_column_id_table_$tableId'),\n                     |  ?\n                     |) RETURNING column_id, ordering\"\"\".stripMargin,\n         Json.arr(tableId, name, linkId))\n       case Some(ord) => t.query(s\"\"\"\n                     |INSERT INTO system_columns (table_id, column_id, column_type, user_column_name, ordering, link_id) VALUES (\n-                    |  ?, \n-                    |  nextval('system_columns_column_id_table_$tableId'), \n+                    |  ?,\n+                    |  nextval('system_columns_column_id_table_$tableId'),\n                     |  'link',\n-                    |  ?, \n-                    |  ?, \n+                    |  ?,\n+                    |  ?,\n                     |  ?\n                     |) RETURNING column_id, ordering\"\"\".stripMargin,\n         Json.arr(tableId, name, ord, linkId))\n     }\n     (t, _) <- t.query(s\"\"\"","path":"src/main/scala/com/campudus/tableaux/database/model/tableaux/ColumnStructure.scala","position":105,"original_position":105,"commit_id":"2c2335f42aeaa048c8f1ca8154ed93155979a05c","original_commit_id":"2c2335f42aeaa048c8f1ca8154ed93155979a05c","user":{"login":"Narigo","id":1767865,"avatar_url":"https://avatars.githubusercontent.com/u/1767865?v=3","gravatar_id":"","url":"https://api.github.com/users/Narigo","html_url":"https://github.com/Narigo","followers_url":"https://api.github.com/users/Narigo/followers","following_url":"https://api.github.com/users/Narigo/following{/other_user}","gists_url":"https://api.github.com/users/Narigo/gists{/gist_id}","starred_url":"https://api.github.com/users/Narigo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Narigo/subscriptions","organizations_url":"https://api.github.com/users/Narigo/orgs","repos_url":"https://api.github.com/users/Narigo/repos","events_url":"https://api.github.com/users/Narigo/events{/privacy}","received_events_url":"https://api.github.com/users/Narigo/received_events","type":"User","site_admin":false},"body":"Prepared statement without parameters (see comment about `DatabaseConnection`)","created_at":"2015-06-10T08:29:04Z","updated_at":"2015-06-10T08:29:04Z","html_url":"https://github.com/campudus/tableaux/pull/48#discussion_r32097209","pull_request_url":"https://api.github.com/repos/campudus/tableaux/pulls/48","_links":{"self":{"href":"https://api.github.com/repos/campudus/tableaux/pulls/comments/32097209"},"html":{"href":"https://github.com/campudus/tableaux/pull/48#discussion_r32097209"},"pull_request":{"href":"https://api.github.com/repos/campudus/tableaux/pulls/48"}}},"pull_request":{"url":"https://api.github.com/repos/campudus/tableaux/pulls/48","id":37277449,"html_url":"https://github.com/campudus/tableaux/pull/48","diff_url":"https://github.com/campudus/tableaux/pull/48.diff","patch_url":"https://github.com/campudus/tableaux/pull/48.patch","issue_url":"https://api.github.com/repos/campudus/tableaux/issues/48","number":48,"state":"open","locked":false,"title":"Media Management","user":{"login":"alexvetter","id":874,"avatar_url":"https://avatars.githubusercontent.com/u/874?v=3","gravatar_id":"","url":"https://api.github.com/users/alexvetter","html_url":"https://github.com/alexvetter","followers_url":"https://api.github.com/users/alexvetter/followers","following_url":"https://api.github.com/users/alexvetter/following{/other_user}","gists_url":"https://api.github.com/users/alexvetter/gists{/gist_id}","starred_url":"https://api.github.com/users/alexvetter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexvetter/subscriptions","organizations_url":"https://api.github.com/users/alexvetter/orgs","repos_url":"https://api.github.com/users/alexvetter/repos","events_url":"https://api.github.com/users/alexvetter/events{/privacy}","received_events_url":"https://api.github.com/users/alexvetter/received_events","type":"User","site_admin":false},"body":"Implementation of API described in issue #40 \r\n\r\nNeeds to be done: add new column type to make use of files in user tables ","created_at":"2015-06-09T17:19:05Z","updated_at":"2015-06-10T08:29:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"28dd1d9b817bb96306a8f1e6c8a1f3017bef0d3e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/campudus/tableaux/pulls/48/commits","review_comments_url":"https://api.github.com/repos/campudus/tableaux/pulls/48/comments","review_comment_url":"https://api.github.com/repos/campudus/tableaux/pulls/comments{/number}","comments_url":"https://api.github.com/repos/campudus/tableaux/issues/48/comments","statuses_url":"https://api.github.com/repos/campudus/tableaux/statuses/2c2335f42aeaa048c8f1ca8154ed93155979a05c","head":{"label":"campudus:media-management","ref":"media-management","sha":"2c2335f42aeaa048c8f1ca8154ed93155979a05c","user":{"login":"campudus","id":2135461,"avatar_url":"https://avatars.githubusercontent.com/u/2135461?v=3","gravatar_id":"","url":"https://api.github.com/users/campudus","html_url":"https://github.com/campudus","followers_url":"https://api.github.com/users/campudus/followers","following_url":"https://api.github.com/users/campudus/following{/other_user}","gists_url":"https://api.github.com/users/campudus/gists{/gist_id}","starred_url":"https://api.github.com/users/campudus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/campudus/subscriptions","organizations_url":"https://api.github.com/users/campudus/orgs","repos_url":"https://api.github.com/users/campudus/repos","events_url":"https://api.github.com/users/campudus/events{/privacy}","received_events_url":"https://api.github.com/users/campudus/received_events","type":"Organization","site_admin":false},"repo":{"id":26916856,"name":"tableaux","full_name":"campudus/tableaux","owner":{"login":"campudus","id":2135461,"avatar_url":"https://avatars.githubusercontent.com/u/2135461?v=3","gravatar_id":"","url":"https://api.github.com/users/campudus","html_url":"https://github.com/campudus","followers_url":"https://api.github.com/users/campudus/followers","following_url":"https://api.github.com/users/campudus/following{/other_user}","gists_url":"https://api.github.com/users/campudus/gists{/gist_id}","starred_url":"https://api.github.com/users/campudus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/campudus/subscriptions","organizations_url":"https://api.github.com/users/campudus/orgs","repos_url":"https://api.github.com/users/campudus/repos","events_url":"https://api.github.com/users/campudus/events{/privacy}","received_events_url":"https://api.github.com/users/campudus/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/campudus/tableaux","description":"Store data and be able to process it easily via batch scripts.","fork":false,"url":"https://api.github.com/repos/campudus/tableaux","forks_url":"https://api.github.com/repos/campudus/tableaux/forks","keys_url":"https://api.github.com/repos/campudus/tableaux/keys{/key_id}","collaborators_url":"https://api.github.com/repos/campudus/tableaux/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/campudus/tableaux/teams","hooks_url":"https://api.github.com/repos/campudus/tableaux/hooks","issue_events_url":"https://api.github.com/repos/campudus/tableaux/issues/events{/number}","events_url":"https://api.github.com/repos/campudus/tableaux/events","assignees_url":"https://api.github.com/repos/campudus/tableaux/assignees{/user}","branches_url":"https://api.github.com/repos/campudus/tableaux/branches{/branch}","tags_url":"https://api.github.com/repos/campudus/tableaux/tags","blobs_url":"https://api.github.com/repos/campudus/tableaux/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/campudus/tableaux/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/campudus/tableaux/git/refs{/sha}","trees_url":"https://api.github.com/repos/campudus/tableaux/git/trees{/sha}","statuses_url":"https://api.github.com/repos/campudus/tableaux/statuses/{sha}","languages_url":"https://api.github.com/repos/campudus/tableaux/languages","stargazers_url":"https://api.github.com/repos/campudus/tableaux/stargazers","contributors_url":"https://api.github.com/repos/campudus/tableaux/contributors","subscribers_url":"https://api.github.com/repos/campudus/tableaux/subscribers","subscription_url":"https://api.github.com/repos/campudus/tableaux/subscription","commits_url":"https://api.github.com/repos/campudus/tableaux/commits{/sha}","git_commits_url":"https://api.github.com/repos/campudus/tableaux/git/commits{/sha}","comments_url":"https://api.github.com/repos/campudus/tableaux/comments{/number}","issue_comment_url":"https://api.github.com/repos/campudus/tableaux/issues/comments{/number}","contents_url":"https://api.github.com/repos/campudus/tableaux/contents/{+path}","compare_url":"https://api.github.com/repos/campudus/tableaux/compare/{base}...{head}","merges_url":"https://api.github.com/repos/campudus/tableaux/merges","archive_url":"https://api.github.com/repos/campudus/tableaux/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/campudus/tableaux/downloads","issues_url":"https://api.github.com/repos/campudus/tableaux/issues{/number}","pulls_url":"https://api.github.com/repos/campudus/tableaux/pulls{/number}","milestones_url":"https://api.github.com/repos/campudus/tableaux/milestones{/number}","notifications_url":"https://api.github.com/repos/campudus/tableaux/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/campudus/tableaux/labels{/name}","releases_url":"https://api.github.com/repos/campudus/tableaux/releases{/id}","created_at":"2014-11-20T14:49:50Z","updated_at":"2015-03-25T23:20:14Z","pushed_at":"2015-06-09T17:19:05Z","git_url":"git://github.com/campudus/tableaux.git","ssh_url":"git@github.com:campudus/tableaux.git","clone_url":"https://github.com/campudus/tableaux.git","svn_url":"https://github.com/campudus/tableaux","homepage":null,"size":4732,"stargazers_count":1,"watchers_count":1,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":13,"forks":0,"open_issues":13,"watchers":1,"default_branch":"master"}},"base":{"label":"campudus:master","ref":"master","sha":"700b4eec3f5fece7416862f40ecb464ddb24251a","user":{"login":"campudus","id":2135461,"avatar_url":"https://avatars.githubusercontent.com/u/2135461?v=3","gravatar_id":"","url":"https://api.github.com/users/campudus","html_url":"https://github.com/campudus","followers_url":"https://api.github.com/users/campudus/followers","following_url":"https://api.github.com/users/campudus/following{/other_user}","gists_url":"https://api.github.com/users/campudus/gists{/gist_id}","starred_url":"https://api.github.com/users/campudus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/campudus/subscriptions","organizations_url":"https://api.github.com/users/campudus/orgs","repos_url":"https://api.github.com/users/campudus/repos","events_url":"https://api.github.com/users/campudus/events{/privacy}","received_events_url":"https://api.github.com/users/campudus/received_events","type":"Organization","site_admin":false},"repo":{"id":26916856,"name":"tableaux","full_name":"campudus/tableaux","owner":{"login":"campudus","id":2135461,"avatar_url":"https://avatars.githubusercontent.com/u/2135461?v=3","gravatar_id":"","url":"https://api.github.com/users/campudus","html_url":"https://github.com/campudus","followers_url":"https://api.github.com/users/campudus/followers","following_url":"https://api.github.com/users/campudus/following{/other_user}","gists_url":"https://api.github.com/users/campudus/gists{/gist_id}","starred_url":"https://api.github.com/users/campudus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/campudus/subscriptions","organizations_url":"https://api.github.com/users/campudus/orgs","repos_url":"https://api.github.com/users/campudus/repos","events_url":"https://api.github.com/users/campudus/events{/privacy}","received_events_url":"https://api.github.com/users/campudus/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/campudus/tableaux","description":"Store data and be able to process it easily via batch scripts.","fork":false,"url":"https://api.github.com/repos/campudus/tableaux","forks_url":"https://api.github.com/repos/campudus/tableaux/forks","keys_url":"https://api.github.com/repos/campudus/tableaux/keys{/key_id}","collaborators_url":"https://api.github.com/repos/campudus/tableaux/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/campudus/tableaux/teams","hooks_url":"https://api.github.com/repos/campudus/tableaux/hooks","issue_events_url":"https://api.github.com/repos/campudus/tableaux/issues/events{/number}","events_url":"https://api.github.com/repos/campudus/tableaux/events","assignees_url":"https://api.github.com/repos/campudus/tableaux/assignees{/user}","branches_url":"https://api.github.com/repos/campudus/tableaux/branches{/branch}","tags_url":"https://api.github.com/repos/campudus/tableaux/tags","blobs_url":"https://api.github.com/repos/campudus/tableaux/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/campudus/tableaux/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/campudus/tableaux/git/refs{/sha}","trees_url":"https://api.github.com/repos/campudus/tableaux/git/trees{/sha}","statuses_url":"https://api.github.com/repos/campudus/tableaux/statuses/{sha}","languages_url":"https://api.github.com/repos/campudus/tableaux/languages","stargazers_url":"https://api.github.com/repos/campudus/tableaux/stargazers","contributors_url":"https://api.github.com/repos/campudus/tableaux/contributors","subscribers_url":"https://api.github.com/repos/campudus/tableaux/subscribers","subscription_url":"https://api.github.com/repos/campudus/tableaux/subscription","commits_url":"https://api.github.com/repos/campudus/tableaux/commits{/sha}","git_commits_url":"https://api.github.com/repos/campudus/tableaux/git/commits{/sha}","comments_url":"https://api.github.com/repos/campudus/tableaux/comments{/number}","issue_comment_url":"https://api.github.com/repos/campudus/tableaux/issues/comments{/number}","contents_url":"https://api.github.com/repos/campudus/tableaux/contents/{+path}","compare_url":"https://api.github.com/repos/campudus/tableaux/compare/{base}...{head}","merges_url":"https://api.github.com/repos/campudus/tableaux/merges","archive_url":"https://api.github.com/repos/campudus/tableaux/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/campudus/tableaux/downloads","issues_url":"https://api.github.com/repos/campudus/tableaux/issues{/number}","pulls_url":"https://api.github.com/repos/campudus/tableaux/pulls{/number}","milestones_url":"https://api.github.com/repos/campudus/tableaux/milestones{/number}","notifications_url":"https://api.github.com/repos/campudus/tableaux/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/campudus/tableaux/labels{/name}","releases_url":"https://api.github.com/repos/campudus/tableaux/releases{/id}","created_at":"2014-11-20T14:49:50Z","updated_at":"2015-03-25T23:20:14Z","pushed_at":"2015-06-09T17:19:05Z","git_url":"git://github.com/campudus/tableaux.git","ssh_url":"git@github.com:campudus/tableaux.git","clone_url":"https://github.com/campudus/tableaux.git","svn_url":"https://github.com/campudus/tableaux","homepage":null,"size":4732,"stargazers_count":1,"watchers_count":1,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":13,"forks":0,"open_issues":13,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/campudus/tableaux/pulls/48"},"html":{"href":"https://github.com/campudus/tableaux/pull/48"},"issue":{"href":"https://api.github.com/repos/campudus/tableaux/issues/48"},"comments":{"href":"https://api.github.com/repos/campudus/tableaux/issues/48/comments"},"review_comments":{"href":"https://api.github.com/repos/campudus/tableaux/pulls/48/comments"},"review_comment":{"href":"https://api.github.com/repos/campudus/tableaux/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/campudus/tableaux/pulls/48/commits"},"statuses":{"href":"https://api.github.com/repos/campudus/tableaux/statuses/2c2335f42aeaa048c8f1ca8154ed93155979a05c"}}}}