{"action":"created","issue":{"url":"https://api.github.com/repos/nearform/temporal_tables/issues/13","repository_url":"https://api.github.com/repos/nearform/temporal_tables","labels_url":"https://api.github.com/repos/nearform/temporal_tables/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/nearform/temporal_tables/issues/13/comments","events_url":"https://api.github.com/repos/nearform/temporal_tables/issues/13/events","html_url":"https://github.com/nearform/temporal_tables/pull/13","id":356718120,"node_id":"MDExOlB1bGxSZXF1ZXN0MjEyOTA0OTE4","number":13,"title":"Update to versioning fn to handle schema","user":{"login":"ShaunBaker","id":1176557,"node_id":"MDQ6VXNlcjExNzY1NTc=","avatar_url":"https://avatars3.githubusercontent.com/u/1176557?v=4","gravatar_id":"","url":"https://api.github.com/users/ShaunBaker","html_url":"https://github.com/ShaunBaker","followers_url":"https://api.github.com/users/ShaunBaker/followers","following_url":"https://api.github.com/users/ShaunBaker/following{/other_user}","gists_url":"https://api.github.com/users/ShaunBaker/gists{/gist_id}","starred_url":"https://api.github.com/users/ShaunBaker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ShaunBaker/subscriptions","organizations_url":"https://api.github.com/users/ShaunBaker/orgs","repos_url":"https://api.github.com/users/ShaunBaker/repos","events_url":"https://api.github.com/users/ShaunBaker/events{/privacy}","received_events_url":"https://api.github.com/users/ShaunBaker/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-04T09:07:10Z","updated_at":"2018-09-04T23:09:24Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/nearform/temporal_tables/pulls/13","html_url":"https://github.com/nearform/temporal_tables/pull/13","diff_url":"https://github.com/nearform/temporal_tables/pull/13.diff","patch_url":"https://github.com/nearform/temporal_tables/pull/13.patch"},"body":"Update to versioning fn to handle being run under a schema not known when the trigger is created.\r\n\r\nIn our usage we use the function within a specific schema - this schema is not known when the trigger is defined. "},"comment":{"url":"https://api.github.com/repos/nearform/temporal_tables/issues/comments/418546387","html_url":"https://github.com/nearform/temporal_tables/pull/13#issuecomment-418546387","issue_url":"https://api.github.com/repos/nearform/temporal_tables/issues/13","id":418546387,"node_id":"MDEyOklzc3VlQ29tbWVudDQxODU0NjM4Nw==","user":{"login":"ShaunBaker","id":1176557,"node_id":"MDQ6VXNlcjExNzY1NTc=","avatar_url":"https://avatars3.githubusercontent.com/u/1176557?v=4","gravatar_id":"","url":"https://api.github.com/users/ShaunBaker","html_url":"https://github.com/ShaunBaker","followers_url":"https://api.github.com/users/ShaunBaker/followers","following_url":"https://api.github.com/users/ShaunBaker/following{/other_user}","gists_url":"https://api.github.com/users/ShaunBaker/gists{/gist_id}","starred_url":"https://api.github.com/users/ShaunBaker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ShaunBaker/subscriptions","organizations_url":"https://api.github.com/users/ShaunBaker/orgs","repos_url":"https://api.github.com/users/ShaunBaker/repos","events_url":"https://api.github.com/users/ShaunBaker/events{/privacy}","received_events_url":"https://api.github.com/users/ShaunBaker/received_events","type":"User","site_admin":false},"created_at":"2018-09-04T23:09:24Z","updated_at":"2018-09-04T23:09:24Z","author_association":"NONE","body":"Hey - stepping back and rethinking this - the requirement of schema/tablename as parameters when the trigger is created can be entirely optional.\r\n\r\nWithin the function TG_TABLE_SCHEMA and TG_TABLE_NAME could be used (which gives the schema and table that caused the trigger to be invoked).\r\n\r\nTested this locally and is straightfoward.\r\n\r\nContext - we are just creating normal triggers in migration files with Postgrator (migrating per schema)."}}
{"actor":{"display_login":"ShaunBaker"}}