{"action":"opened","number":959,"pull_request":{"url":"https://api.github.com/repos/h2database/h2database/pulls/959","id":174211755,"html_url":"https://github.com/h2database/h2database/pull/959","diff_url":"https://github.com/h2database/h2database/pull/959.diff","patch_url":"https://github.com/h2database/h2database/pull/959.patch","issue_url":"https://api.github.com/repos/h2database/h2database/issues/959","number":959,"state":"open","locked":false,"title":"Add optional MySQL-style ON UPDATE to columns","user":{"login":"katzyn","id":23182944,"avatar_url":"https://avatars0.githubusercontent.com/u/23182944?v=4","gravatar_id":"","url":"https://api.github.com/users/katzyn","html_url":"https://github.com/katzyn","followers_url":"https://api.github.com/users/katzyn/followers","following_url":"https://api.github.com/users/katzyn/following{/other_user}","gists_url":"https://api.github.com/users/katzyn/gists{/gist_id}","starred_url":"https://api.github.com/users/katzyn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/katzyn/subscriptions","organizations_url":"https://api.github.com/users/katzyn/orgs","repos_url":"https://api.github.com/users/katzyn/repos","events_url":"https://api.github.com/users/katzyn/events{/privacy}","received_events_url":"https://api.github.com/users/katzyn/received_events","type":"User","site_admin":false},"body":"An implementation of feature request #219.\r\n\r\nThis feature is available in all modes because in may be useful in default mode to.\r\n\r\n`CREATE TABLE` and `ALTER TABLE ADD COLUMN` syntax is the same as in MySQL.\r\n\r\n`ALTER TABLE ALTER COLUMN` syntax for changing existing columns is not compatible with MySQL, because in MySQL such parameters cannot be changed in regular way, `CHANGE` should be used instead, but H2 don't have this MySQL extension.\r\n\r\nThis implementation is not limited to date-time columns and `CURRENT_TIMESTAMP` function, any column and any expression can be used, just like in `DEFAULT`.\r\n\r\nIf update statement does not change any values in a row `ON UPDATE` column does not change its value, like in MySQL. Explicit value for this column can be specified to prevent execution of `ON UPDATE` expression also like in MySQL.\r\n\r\nNon-standard `INFORMATION_SCHEMA.COLUMNS.COLUMN_ON_UPDATE` field is introduced. (`COLUMN_DEFAULT` was already here, so name for `ON UPDATE` follows this name convention).\r\n\r\nDocumentation is updated.\r\n\r\nMinor issues with building of documentation are also fixed.","created_at":"2018-03-11T09:15:34Z","updated_at":"2018-03-11T09:15:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/h2database/h2database/pulls/959/commits","review_comments_url":"https://api.github.com/repos/h2database/h2database/pulls/959/comments","review_comment_url":"https://api.github.com/repos/h2database/h2database/pulls/comments{/number}","comments_url":"https://api.github.com/repos/h2database/h2database/issues/959/comments","statuses_url":"https://api.github.com/repos/h2database/h2database/statuses/dc791464e402718cf9e8dcdc2d3e024da4ee19b3","head":{"label":"katzyn:on_update","ref":"on_update","sha":"dc791464e402718cf9e8dcdc2d3e024da4ee19b3","user":{"login":"katzyn","id":23182944,"avatar_url":"https://avatars0.githubusercontent.com/u/23182944?v=4","gravatar_id":"","url":"https://api.github.com/users/katzyn","html_url":"https://github.com/katzyn","followers_url":"https://api.github.com/users/katzyn/followers","following_url":"https://api.github.com/users/katzyn/following{/other_user}","gists_url":"https://api.github.com/users/katzyn/gists{/gist_id}","starred_url":"https://api.github.com/users/katzyn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/katzyn/subscriptions","organizations_url":"https://api.github.com/users/katzyn/orgs","repos_url":"https://api.github.com/users/katzyn/repos","events_url":"https://api.github.com/users/katzyn/events{/privacy}","received_events_url":"https://api.github.com/users/katzyn/received_events","type":"User","site_admin":false},"repo":{"id":72628350,"name":"h2database","full_name":"katzyn/h2database","owner":{"login":"katzyn","id":23182944,"avatar_url":"https://avatars0.githubusercontent.com/u/23182944?v=4","gravatar_id":"","url":"https://api.github.com/users/katzyn","html_url":"https://github.com/katzyn","followers_url":"https://api.github.com/users/katzyn/followers","following_url":"https://api.github.com/users/katzyn/following{/other_user}","gists_url":"https://api.github.com/users/katzyn/gists{/gist_id}","starred_url":"https://api.github.com/users/katzyn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/katzyn/subscriptions","organizations_url":"https://api.github.com/users/katzyn/orgs","repos_url":"https://api.github.com/users/katzyn/repos","events_url":"https://api.github.com/users/katzyn/events{/privacy}","received_events_url":"https://api.github.com/users/katzyn/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/katzyn/h2database","description":"H2 is an embeddable RDBMS written in Java.","fork":true,"url":"https://api.github.com/repos/katzyn/h2database","forks_url":"https://api.github.com/repos/katzyn/h2database/forks","keys_url":"https://api.github.com/repos/katzyn/h2database/keys{/key_id}","collaborators_url":"https://api.github.com/repos/katzyn/h2database/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/katzyn/h2database/teams","hooks_url":"https://api.github.com/repos/katzyn/h2database/hooks","issue_events_url":"https://api.github.com/repos/katzyn/h2database/issues/events{/number}","events_url":"https://api.github.com/repos/katzyn/h2database/events","assignees_url":"https://api.github.com/repos/katzyn/h2database/assignees{/user}","branches_url":"https://api.github.com/repos/katzyn/h2database/branches{/branch}","tags_url":"https://api.github.com/repos/katzyn/h2database/tags","blobs_url":"https://api.github.com/repos/katzyn/h2database/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/katzyn/h2database/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/katzyn/h2database/git/refs{/sha}","trees_url":"https://api.github.com/repos/katzyn/h2database/git/trees{/sha}","statuses_url":"https://api.github.com/repos/katzyn/h2database/statuses/{sha}","languages_url":"https://api.github.com/repos/katzyn/h2database/languages","stargazers_url":"https://api.github.com/repos/katzyn/h2database/stargazers","contributors_url":"https://api.github.com/repos/katzyn/h2database/contributors","subscribers_url":"https://api.github.com/repos/katzyn/h2database/subscribers","subscription_url":"https://api.github.com/repos/katzyn/h2database/subscription","commits_url":"https://api.github.com/repos/katzyn/h2database/commits{/sha}","git_commits_url":"https://api.github.com/repos/katzyn/h2database/git/commits{/sha}","comments_url":"https://api.github.com/repos/katzyn/h2database/comments{/number}","issue_comment_url":"https://api.github.com/repos/katzyn/h2database/issues/comments{/number}","contents_url":"https://api.github.com/repos/katzyn/h2database/contents/{+path}","compare_url":"https://api.github.com/repos/katzyn/h2database/compare/{base}...{head}","merges_url":"https://api.github.com/repos/katzyn/h2database/merges","archive_url":"https://api.github.com/repos/katzyn/h2database/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/katzyn/h2database/downloads","issues_url":"https://api.github.com/repos/katzyn/h2database/issues{/number}","pulls_url":"https://api.github.com/repos/katzyn/h2database/pulls{/number}","milestones_url":"https://api.github.com/repos/katzyn/h2database/milestones{/number}","notifications_url":"https://api.github.com/repos/katzyn/h2database/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/katzyn/h2database/labels{/name}","releases_url":"https://api.github.com/repos/katzyn/h2database/releases{/id}","deployments_url":"https://api.github.com/repos/katzyn/h2database/deployments","created_at":"2016-11-02T10:19:29Z","updated_at":"2016-11-02T10:19:34Z","pushed_at":"2018-03-11T09:12:19Z","git_url":"git://github.com/katzyn/h2database.git","ssh_url":"git@github.com:katzyn/h2database.git","clone_url":"https://github.com/katzyn/h2database.git","svn_url":"https://github.com/katzyn/h2database","homepage":"http://h2database.com","size":56944,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"h2database:master","ref":"master","sha":"14c53dc0428fcb66808177eddbebe0c51a5276ed","user":{"login":"h2database","id":11459762,"avatar_url":"https://avatars2.githubusercontent.com/u/11459762?v=4","gravatar_id":"","url":"https://api.github.com/users/h2database","html_url":"https://github.com/h2database","followers_url":"https://api.github.com/users/h2database/followers","following_url":"https://api.github.com/users/h2database/following{/other_user}","gists_url":"https://api.github.com/users/h2database/gists{/gist_id}","starred_url":"https://api.github.com/users/h2database/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/h2database/subscriptions","organizations_url":"https://api.github.com/users/h2database/orgs","repos_url":"https://api.github.com/users/h2database/repos","events_url":"https://api.github.com/users/h2database/events{/privacy}","received_events_url":"https://api.github.com/users/h2database/received_events","type":"Organization","site_admin":false},"repo":{"id":33745913,"name":"h2database","full_name":"h2database/h2database","owner":{"login":"h2database","id":11459762,"avatar_url":"https://avatars2.githubusercontent.com/u/11459762?v=4","gravatar_id":"","url":"https://api.github.com/users/h2database","html_url":"https://github.com/h2database","followers_url":"https://api.github.com/users/h2database/followers","following_url":"https://api.github.com/users/h2database/following{/other_user}","gists_url":"https://api.github.com/users/h2database/gists{/gist_id}","starred_url":"https://api.github.com/users/h2database/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/h2database/subscriptions","organizations_url":"https://api.github.com/users/h2database/orgs","repos_url":"https://api.github.com/users/h2database/repos","events_url":"https://api.github.com/users/h2database/events{/privacy}","received_events_url":"https://api.github.com/users/h2database/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/h2database/h2database","description":"H2 is an embeddable RDBMS written in Java.","fork":false,"url":"https://api.github.com/repos/h2database/h2database","forks_url":"https://api.github.com/repos/h2database/h2database/forks","keys_url":"https://api.github.com/repos/h2database/h2database/keys{/key_id}","collaborators_url":"https://api.github.com/repos/h2database/h2database/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/h2database/h2database/teams","hooks_url":"https://api.github.com/repos/h2database/h2database/hooks","issue_events_url":"https://api.github.com/repos/h2database/h2database/issues/events{/number}","events_url":"https://api.github.com/repos/h2database/h2database/events","assignees_url":"https://api.github.com/repos/h2database/h2database/assignees{/user}","branches_url":"https://api.github.com/repos/h2database/h2database/branches{/branch}","tags_url":"https://api.github.com/repos/h2database/h2database/tags","blobs_url":"https://api.github.com/repos/h2database/h2database/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/h2database/h2database/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/h2database/h2database/git/refs{/sha}","trees_url":"https://api.github.com/repos/h2database/h2database/git/trees{/sha}","statuses_url":"https://api.github.com/repos/h2database/h2database/statuses/{sha}","languages_url":"https://api.github.com/repos/h2database/h2database/languages","stargazers_url":"https://api.github.com/repos/h2database/h2database/stargazers","contributors_url":"https://api.github.com/repos/h2database/h2database/contributors","subscribers_url":"https://api.github.com/repos/h2database/h2database/subscribers","subscription_url":"https://api.github.com/repos/h2database/h2database/subscription","commits_url":"https://api.github.com/repos/h2database/h2database/commits{/sha}","git_commits_url":"https://api.github.com/repos/h2database/h2database/git/commits{/sha}","comments_url":"https://api.github.com/repos/h2database/h2database/comments{/number}","issue_comment_url":"https://api.github.com/repos/h2database/h2database/issues/comments{/number}","contents_url":"https://api.github.com/repos/h2database/h2database/contents/{+path}","compare_url":"https://api.github.com/repos/h2database/h2database/compare/{base}...{head}","merges_url":"https://api.github.com/repos/h2database/h2database/merges","archive_url":"https://api.github.com/repos/h2database/h2database/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/h2database/h2database/downloads","issues_url":"https://api.github.com/repos/h2database/h2database/issues{/number}","pulls_url":"https://api.github.com/repos/h2database/h2database/pulls{/number}","milestones_url":"https://api.github.com/repos/h2database/h2database/milestones{/number}","notifications_url":"https://api.github.com/repos/h2database/h2database/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/h2database/h2database/labels{/name}","releases_url":"https://api.github.com/repos/h2database/h2database/releases{/id}","deployments_url":"https://api.github.com/repos/h2database/h2database/deployments","created_at":"2015-04-10T19:09:09Z","updated_at":"2018-03-07T11:38:07Z","pushed_at":"2018-03-11T06:30:34Z","git_url":"git://github.com/h2database/h2database.git","ssh_url":"git@github.com:h2database/h2database.git","clone_url":"https://github.com/h2database/h2database.git","svn_url":"https://github.com/h2database/h2database","homepage":"http://h2database.com","size":58427,"stargazers_count":1081,"watchers_count":1081,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":421,"mirror_url":null,"archived":false,"open_issues_count":125,"license":null,"forks":421,"open_issues":125,"watchers":1081,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/h2database/h2database/pulls/959"},"html":{"href":"https://github.com/h2database/h2database/pull/959"},"issue":{"href":"https://api.github.com/repos/h2database/h2database/issues/959"},"comments":{"href":"https://api.github.com/repos/h2database/h2database/issues/959/comments"},"review_comments":{"href":"https://api.github.com/repos/h2database/h2database/pulls/959/comments"},"review_comment":{"href":"https://api.github.com/repos/h2database/h2database/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/h2database/h2database/pulls/959/commits"},"statuses":{"href":"https://api.github.com/repos/h2database/h2database/statuses/dc791464e402718cf9e8dcdc2d3e024da4ee19b3"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":3,"additions":296,"deletions":44,"changed_files":20}}
{"actor":{"display_login":"katzyn"}}