{"action":"created","comment":{"url":"https://api.github.com/repos/clouway-incubator/jdbc/pulls/comments/24409512","id":24409512,"diff_hunk":"@@ -0,0 +1,124 @@\n+--\n+-- PostgreSQL database dump\n+--\n+\n+SET statement_timeout = 0;\n+SET lock_timeout = 0;\n+SET client_encoding = 'UTF8';\n+SET standard_conforming_strings = on;\n+SET check_function_bodies = false;\n+SET client_min_messages = warning;\n+\n+--\n+-- Name: plpgsql; Type: EXTENSION; Schema: -; Owner: \n+--\n+\n+CREATE EXTENSION IF NOT EXISTS plpgsql WITH SCHEMA pg_catalog;\n+\n+\n+--\n+-- Name: EXTENSION plpgsql; Type: COMMENT; Schema: -; Owner: \n+--\n+\n+COMMENT ON EXTENSION plpgsql IS 'PL/pgSQL procedural language';\n+\n+\n+SET search_path = public, pg_catalog;\n+\n+--\n+-- Name: article_func(); Type: FUNCTION; Schema: public; Owner: postgres\n+--\n+\n+CREATE FUNCTION article_func() RETURNS trigger\n+    LANGUAGE plpgsql\n+    AS $$\n+BEGIN\n+insert into article_history (id,title) values(new.id,current_timestamp);\n+return new;\n+end\n+$$;\n+\n+\n+ALTER FUNCTION public.article_func() OWNER TO postgres;\n+\n+--\n+-- Name: auditlogfunc(); Type: FUNCTION; Schema: public; Owner: postgres\n+--\n+\n+CREATE FUNCTION auditlogfunc() RETURNS trigger\n+    LANGUAGE plpgsql\n+    AS $$\n+BEGIN\n+        INSERT INTO article_history(title) values(new.title);\n+return new;\n+end\n+$$;\n+\n+\n+ALTER FUNCTION public.auditlogfunc() OWNER TO postgres;\n+\n+SET default_tablespace = '';\n+\n+SET default_with_oids = false;\n+\n+--\n+-- Name: article_history; Type: TABLE; Schema: public; Owner: postgres; Tablespace: \n+--\n+\n+CREATE TABLE article_history (\n+    title character varying(30)\n+);\n+\n+\n+ALTER TABLE public.article_history OWNER TO postgres;\n+\n+--\n+-- Name: articles; Type: TABLE; Schema: public; Owner: postgres; Tablespace: \n+--\n+\n+CREATE TABLE articles (\n+    title character varying(30)\n+);\n+\n+\n+ALTER TABLE public.articles OWNER TO postgres;\n+\n+--\n+-- Data for Name: article_history; Type: TABLE DATA; Schema: public; Owner: postgres\n+--\n+\n+COPY article_history (title) FROM stdin;\n+Charlie Hebdo\n+\\.\n+\n+\n+--\n+-- Data for Name: articles; Type: TABLE DATA; Schema: public; Owner: postgres\n+--\n+\n+COPY articles (title) FROM stdin;\n+Charlie Hebdo\n+\\.\n+\n+\n+--\n+-- Name: example_triggers; Type: TRIGGER; Schema: public; Owner: postgres\n+--\n+\n+CREATE TRIGGER example_triggers AFTER INSERT ON articles FOR EACH ROW EXECUTE PROCEDURE auditlogfunc();\n+\n+\n+--\n+-- Name: public; Type: ACL; Schema: -; Owner: postgres\n+--\n+\n+REVOKE ALL ON SCHEMA public FROM PUBLIC;","path":"schema/triggers.txt","position":115,"original_position":115,"commit_id":"0032247b6acd5af813880b87c8333e37989d503d","original_commit_id":"0032247b6acd5af813880b87c8333e37989d503d","user":{"login":"mgenov","id":209223,"avatar_url":"https://avatars.githubusercontent.com/u/209223?v=3","gravatar_id":"","url":"https://api.github.com/users/mgenov","html_url":"https://github.com/mgenov","followers_url":"https://api.github.com/users/mgenov/followers","following_url":"https://api.github.com/users/mgenov/following{/other_user}","gists_url":"https://api.github.com/users/mgenov/gists{/gist_id}","starred_url":"https://api.github.com/users/mgenov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mgenov/subscriptions","organizations_url":"https://api.github.com/users/mgenov/orgs","repos_url":"https://api.github.com/users/mgenov/repos","events_url":"https://api.github.com/users/mgenov/events{/privacy}","received_events_url":"https://api.github.com/users/mgenov/received_events","type":"User","site_admin":false},"body":"What has this in common with triggers.txt ? \r\n\r\nI see that you are dumping the database and you are posting the content of the dump in a txt file. But it makes it hard for looking and also doesn't make it right. Please clean up this file (triggers.sql) to contain only the correct information. ","created_at":"2015-02-10T12:54:57Z","updated_at":"2015-02-10T12:54:57Z","html_url":"https://github.com/clouway-incubator/jdbc/pull/13#discussion_r24409512","pull_request_url":"https://api.github.com/repos/clouway-incubator/jdbc/pulls/13","_links":{"self":{"href":"https://api.github.com/repos/clouway-incubator/jdbc/pulls/comments/24409512"},"html":{"href":"https://github.com/clouway-incubator/jdbc/pull/13#discussion_r24409512"},"pull_request":{"href":"https://api.github.com/repos/clouway-incubator/jdbc/pulls/13"}}},"pull_request":{"url":"https://api.github.com/repos/clouway-incubator/jdbc/pulls/13","id":28266575,"html_url":"https://github.com/clouway-incubator/jdbc/pull/13","diff_url":"https://github.com/clouway-incubator/jdbc/pull/13.diff","patch_url":"https://github.com/clouway-incubator/jdbc/pull/13.patch","issue_url":"https://api.github.com/repos/clouway-incubator/jdbc/issues/13","number":13,"state":"open","locked":false,"title":"Task 5 (Triggers) by Tihomir Kehayov  ","user":{"login":"tkehayov","id":5087372,"avatar_url":"https://avatars.githubusercontent.com/u/5087372?v=3","gravatar_id":"","url":"https://api.github.com/users/tkehayov","html_url":"https://github.com/tkehayov","followers_url":"https://api.github.com/users/tkehayov/followers","following_url":"https://api.github.com/users/tkehayov/following{/other_user}","gists_url":"https://api.github.com/users/tkehayov/gists{/gist_id}","starred_url":"https://api.github.com/users/tkehayov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tkehayov/subscriptions","organizations_url":"https://api.github.com/users/tkehayov/orgs","repos_url":"https://api.github.com/users/tkehayov/repos","events_url":"https://api.github.com/users/tkehayov/events{/privacy}","received_events_url":"https://api.github.com/users/tkehayov/received_events","type":"User","site_admin":false},"body":"(triggers) implements trigger task.","created_at":"2015-01-29T10:08:01Z","updated_at":"2015-02-10T12:54:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8516848ba82fcb24661bdaead5cb5948265a570e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/clouway-incubator/jdbc/pulls/13/commits","review_comments_url":"https://api.github.com/repos/clouway-incubator/jdbc/pulls/13/comments","review_comment_url":"https://api.github.com/repos/clouway-incubator/jdbc/pulls/comments/{number}","comments_url":"https://api.github.com/repos/clouway-incubator/jdbc/issues/13/comments","statuses_url":"https://api.github.com/repos/clouway-incubator/jdbc/statuses/0032247b6acd5af813880b87c8333e37989d503d","head":{"label":"tkehayov:triggers","ref":"triggers","sha":"0032247b6acd5af813880b87c8333e37989d503d","user":{"login":"tkehayov","id":5087372,"avatar_url":"https://avatars.githubusercontent.com/u/5087372?v=3","gravatar_id":"","url":"https://api.github.com/users/tkehayov","html_url":"https://github.com/tkehayov","followers_url":"https://api.github.com/users/tkehayov/followers","following_url":"https://api.github.com/users/tkehayov/following{/other_user}","gists_url":"https://api.github.com/users/tkehayov/gists{/gist_id}","starred_url":"https://api.github.com/users/tkehayov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tkehayov/subscriptions","organizations_url":"https://api.github.com/users/tkehayov/orgs","repos_url":"https://api.github.com/users/tkehayov/repos","events_url":"https://api.github.com/users/tkehayov/events{/privacy}","received_events_url":"https://api.github.com/users/tkehayov/received_events","type":"User","site_admin":false},"repo":{"id":29666967,"name":"jdbc","full_name":"tkehayov/jdbc","owner":{"login":"tkehayov","id":5087372,"avatar_url":"https://avatars.githubusercontent.com/u/5087372?v=3","gravatar_id":"","url":"https://api.github.com/users/tkehayov","html_url":"https://github.com/tkehayov","followers_url":"https://api.github.com/users/tkehayov/followers","following_url":"https://api.github.com/users/tkehayov/following{/other_user}","gists_url":"https://api.github.com/users/tkehayov/gists{/gist_id}","starred_url":"https://api.github.com/users/tkehayov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tkehayov/subscriptions","organizations_url":"https://api.github.com/users/tkehayov/orgs","repos_url":"https://api.github.com/users/tkehayov/repos","events_url":"https://api.github.com/users/tkehayov/events{/privacy}","received_events_url":"https://api.github.com/users/tkehayov/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tkehayov/jdbc","description":"JDBC","fork":true,"url":"https://api.github.com/repos/tkehayov/jdbc","forks_url":"https://api.github.com/repos/tkehayov/jdbc/forks","keys_url":"https://api.github.com/repos/tkehayov/jdbc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tkehayov/jdbc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tkehayov/jdbc/teams","hooks_url":"https://api.github.com/repos/tkehayov/jdbc/hooks","issue_events_url":"https://api.github.com/repos/tkehayov/jdbc/issues/events{/number}","events_url":"https://api.github.com/repos/tkehayov/jdbc/events","assignees_url":"https://api.github.com/repos/tkehayov/jdbc/assignees{/user}","branches_url":"https://api.github.com/repos/tkehayov/jdbc/branches{/branch}","tags_url":"https://api.github.com/repos/tkehayov/jdbc/tags","blobs_url":"https://api.github.com/repos/tkehayov/jdbc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tkehayov/jdbc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tkehayov/jdbc/git/refs{/sha}","trees_url":"https://api.github.com/repos/tkehayov/jdbc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tkehayov/jdbc/statuses/{sha}","languages_url":"https://api.github.com/repos/tkehayov/jdbc/languages","stargazers_url":"https://api.github.com/repos/tkehayov/jdbc/stargazers","contributors_url":"https://api.github.com/repos/tkehayov/jdbc/contributors","subscribers_url":"https://api.github.com/repos/tkehayov/jdbc/subscribers","subscription_url":"https://api.github.com/repos/tkehayov/jdbc/subscription","commits_url":"https://api.github.com/repos/tkehayov/jdbc/commits{/sha}","git_commits_url":"https://api.github.com/repos/tkehayov/jdbc/git/commits{/sha}","comments_url":"https://api.github.com/repos/tkehayov/jdbc/comments{/number}","issue_comment_url":"https://api.github.com/repos/tkehayov/jdbc/issues/comments/{number}","contents_url":"https://api.github.com/repos/tkehayov/jdbc/contents/{+path}","compare_url":"https://api.github.com/repos/tkehayov/jdbc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tkehayov/jdbc/merges","archive_url":"https://api.github.com/repos/tkehayov/jdbc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tkehayov/jdbc/downloads","issues_url":"https://api.github.com/repos/tkehayov/jdbc/issues{/number}","pulls_url":"https://api.github.com/repos/tkehayov/jdbc/pulls{/number}","milestones_url":"https://api.github.com/repos/tkehayov/jdbc/milestones{/number}","notifications_url":"https://api.github.com/repos/tkehayov/jdbc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tkehayov/jdbc/labels{/name}","releases_url":"https://api.github.com/repos/tkehayov/jdbc/releases{/id}","created_at":"2015-01-22T07:36:31Z","updated_at":"2014-12-13T04:13:11Z","pushed_at":"2015-02-06T14:12:37Z","git_url":"git://github.com/tkehayov/jdbc.git","ssh_url":"git@github.com:tkehayov/jdbc.git","clone_url":"https://github.com/tkehayov/jdbc.git","svn_url":"https://github.com/tkehayov/jdbc","homepage":"","size":243,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"clouway-incubator:tkehayov","ref":"tkehayov","sha":"a426b073da771b6b5f575f16cdb114a2d09fd91f","user":{"login":"clouway-incubator","id":10173098,"avatar_url":"https://avatars.githubusercontent.com/u/10173098?v=3","gravatar_id":"","url":"https://api.github.com/users/clouway-incubator","html_url":"https://github.com/clouway-incubator","followers_url":"https://api.github.com/users/clouway-incubator/followers","following_url":"https://api.github.com/users/clouway-incubator/following{/other_user}","gists_url":"https://api.github.com/users/clouway-incubator/gists{/gist_id}","starred_url":"https://api.github.com/users/clouway-incubator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clouway-incubator/subscriptions","organizations_url":"https://api.github.com/users/clouway-incubator/orgs","repos_url":"https://api.github.com/users/clouway-incubator/repos","events_url":"https://api.github.com/users/clouway-incubator/events{/privacy}","received_events_url":"https://api.github.com/users/clouway-incubator/received_events","type":"Organization","site_admin":false},"repo":{"id":27948995,"name":"jdbc","full_name":"clouway-incubator/jdbc","owner":{"login":"clouway-incubator","id":10173098,"avatar_url":"https://avatars.githubusercontent.com/u/10173098?v=3","gravatar_id":"","url":"https://api.github.com/users/clouway-incubator","html_url":"https://github.com/clouway-incubator","followers_url":"https://api.github.com/users/clouway-incubator/followers","following_url":"https://api.github.com/users/clouway-incubator/following{/other_user}","gists_url":"https://api.github.com/users/clouway-incubator/gists{/gist_id}","starred_url":"https://api.github.com/users/clouway-incubator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clouway-incubator/subscriptions","organizations_url":"https://api.github.com/users/clouway-incubator/orgs","repos_url":"https://api.github.com/users/clouway-incubator/repos","events_url":"https://api.github.com/users/clouway-incubator/events{/privacy}","received_events_url":"https://api.github.com/users/clouway-incubator/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/clouway-incubator/jdbc","description":"JDBC","fork":false,"url":"https://api.github.com/repos/clouway-incubator/jdbc","forks_url":"https://api.github.com/repos/clouway-incubator/jdbc/forks","keys_url":"https://api.github.com/repos/clouway-incubator/jdbc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/clouway-incubator/jdbc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/clouway-incubator/jdbc/teams","hooks_url":"https://api.github.com/repos/clouway-incubator/jdbc/hooks","issue_events_url":"https://api.github.com/repos/clouway-incubator/jdbc/issues/events{/number}","events_url":"https://api.github.com/repos/clouway-incubator/jdbc/events","assignees_url":"https://api.github.com/repos/clouway-incubator/jdbc/assignees{/user}","branches_url":"https://api.github.com/repos/clouway-incubator/jdbc/branches{/branch}","tags_url":"https://api.github.com/repos/clouway-incubator/jdbc/tags","blobs_url":"https://api.github.com/repos/clouway-incubator/jdbc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/clouway-incubator/jdbc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/clouway-incubator/jdbc/git/refs{/sha}","trees_url":"https://api.github.com/repos/clouway-incubator/jdbc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/clouway-incubator/jdbc/statuses/{sha}","languages_url":"https://api.github.com/repos/clouway-incubator/jdbc/languages","stargazers_url":"https://api.github.com/repos/clouway-incubator/jdbc/stargazers","contributors_url":"https://api.github.com/repos/clouway-incubator/jdbc/contributors","subscribers_url":"https://api.github.com/repos/clouway-incubator/jdbc/subscribers","subscription_url":"https://api.github.com/repos/clouway-incubator/jdbc/subscription","commits_url":"https://api.github.com/repos/clouway-incubator/jdbc/commits{/sha}","git_commits_url":"https://api.github.com/repos/clouway-incubator/jdbc/git/commits{/sha}","comments_url":"https://api.github.com/repos/clouway-incubator/jdbc/comments{/number}","issue_comment_url":"https://api.github.com/repos/clouway-incubator/jdbc/issues/comments/{number}","contents_url":"https://api.github.com/repos/clouway-incubator/jdbc/contents/{+path}","compare_url":"https://api.github.com/repos/clouway-incubator/jdbc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/clouway-incubator/jdbc/merges","archive_url":"https://api.github.com/repos/clouway-incubator/jdbc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/clouway-incubator/jdbc/downloads","issues_url":"https://api.github.com/repos/clouway-incubator/jdbc/issues{/number}","pulls_url":"https://api.github.com/repos/clouway-incubator/jdbc/pulls{/number}","milestones_url":"https://api.github.com/repos/clouway-incubator/jdbc/milestones{/number}","notifications_url":"https://api.github.com/repos/clouway-incubator/jdbc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/clouway-incubator/jdbc/labels{/name}","releases_url":"https://api.github.com/repos/clouway-incubator/jdbc/releases{/id}","created_at":"2014-12-13T04:13:05Z","updated_at":"2015-02-10T12:27:56Z","pushed_at":"2015-02-10T12:27:56Z","git_url":"git://github.com/clouway-incubator/jdbc.git","ssh_url":"git@github.com:clouway-incubator/jdbc.git","clone_url":"https://github.com/clouway-incubator/jdbc.git","svn_url":"https://github.com/clouway-incubator/jdbc","homepage":"","size":708,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":17,"forks":6,"open_issues":17,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/clouway-incubator/jdbc/pulls/13"},"html":{"href":"https://github.com/clouway-incubator/jdbc/pull/13"},"issue":{"href":"https://api.github.com/repos/clouway-incubator/jdbc/issues/13"},"comments":{"href":"https://api.github.com/repos/clouway-incubator/jdbc/issues/13/comments"},"review_comments":{"href":"https://api.github.com/repos/clouway-incubator/jdbc/pulls/13/comments"},"review_comment":{"href":"https://api.github.com/repos/clouway-incubator/jdbc/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/clouway-incubator/jdbc/pulls/13/commits"},"statuses":{"href":"https://api.github.com/repos/clouway-incubator/jdbc/statuses/0032247b6acd5af813880b87c8333e37989d503d"}}}}