{"action":"opened","number":482,"pull_request":{"url":"https://api.github.com/repos/liquibase/liquibase/pulls/482","id":42352837,"html_url":"https://github.com/liquibase/liquibase/pull/482","diff_url":"https://github.com/liquibase/liquibase/pull/482.diff","patch_url":"https://github.com/liquibase/liquibase/pull/482.patch","issue_url":"https://api.github.com/repos/liquibase/liquibase/issues/482","number":482,"state":"open","locked":false,"title":"MSSQL snapshot did not include primary keys with default schema","user":{"login":"evigeant","id":1313897,"avatar_url":"https://avatars.githubusercontent.com/u/1313897?v=3","gravatar_id":"","url":"https://api.github.com/users/evigeant","html_url":"https://github.com/evigeant","followers_url":"https://api.github.com/users/evigeant/followers","following_url":"https://api.github.com/users/evigeant/following{/other_user}","gists_url":"https://api.github.com/users/evigeant/gists{/gist_id}","starred_url":"https://api.github.com/users/evigeant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evigeant/subscriptions","organizations_url":"https://api.github.com/users/evigeant/orgs","repos_url":"https://api.github.com/users/evigeant/repos","events_url":"https://api.github.com/users/evigeant/events{/privacy}","received_events_url":"https://api.github.com/users/evigeant/received_events","type":"User","site_admin":false},"body":"In SQLServer, I had a precondition checking for the existence of a primary key which did not behave correctly. I traced it down to the snapshot which did not find any primary keys.\r\n\r\nWhen using the default schema (null), the query to fetch primary keys had a where clause like this:\r\n\r\n    WHERE [s].[name] = N'null'\r\n\r\nso it failed as the default schema is 'dbo'","created_at":"2015-08-13T13:54:48Z","updated_at":"2015-08-13T13:54:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/liquibase/liquibase/pulls/482/commits","review_comments_url":"https://api.github.com/repos/liquibase/liquibase/pulls/482/comments","review_comment_url":"https://api.github.com/repos/liquibase/liquibase/pulls/comments{/number}","comments_url":"https://api.github.com/repos/liquibase/liquibase/issues/482/comments","statuses_url":"https://api.github.com/repos/liquibase/liquibase/statuses/9ac92ed44d6cf49947bd38fcc46159ec2dc9c664","head":{"label":"evigeant:fix-mssql-snapshot","ref":"fix-mssql-snapshot","sha":"9ac92ed44d6cf49947bd38fcc46159ec2dc9c664","user":{"login":"evigeant","id":1313897,"avatar_url":"https://avatars.githubusercontent.com/u/1313897?v=3","gravatar_id":"","url":"https://api.github.com/users/evigeant","html_url":"https://github.com/evigeant","followers_url":"https://api.github.com/users/evigeant/followers","following_url":"https://api.github.com/users/evigeant/following{/other_user}","gists_url":"https://api.github.com/users/evigeant/gists{/gist_id}","starred_url":"https://api.github.com/users/evigeant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evigeant/subscriptions","organizations_url":"https://api.github.com/users/evigeant/orgs","repos_url":"https://api.github.com/users/evigeant/repos","events_url":"https://api.github.com/users/evigeant/events{/privacy}","received_events_url":"https://api.github.com/users/evigeant/received_events","type":"User","site_admin":false},"repo":{"id":3138289,"name":"liquibase","full_name":"evigeant/liquibase","owner":{"login":"evigeant","id":1313897,"avatar_url":"https://avatars.githubusercontent.com/u/1313897?v=3","gravatar_id":"","url":"https://api.github.com/users/evigeant","html_url":"https://github.com/evigeant","followers_url":"https://api.github.com/users/evigeant/followers","following_url":"https://api.github.com/users/evigeant/following{/other_user}","gists_url":"https://api.github.com/users/evigeant/gists{/gist_id}","starred_url":"https://api.github.com/users/evigeant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evigeant/subscriptions","organizations_url":"https://api.github.com/users/evigeant/orgs","repos_url":"https://api.github.com/users/evigeant/repos","events_url":"https://api.github.com/users/evigeant/events{/privacy}","received_events_url":"https://api.github.com/users/evigeant/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/evigeant/liquibase","description":"Main Liquibase Source","fork":true,"url":"https://api.github.com/repos/evigeant/liquibase","forks_url":"https://api.github.com/repos/evigeant/liquibase/forks","keys_url":"https://api.github.com/repos/evigeant/liquibase/keys{/key_id}","collaborators_url":"https://api.github.com/repos/evigeant/liquibase/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/evigeant/liquibase/teams","hooks_url":"https://api.github.com/repos/evigeant/liquibase/hooks","issue_events_url":"https://api.github.com/repos/evigeant/liquibase/issues/events{/number}","events_url":"https://api.github.com/repos/evigeant/liquibase/events","assignees_url":"https://api.github.com/repos/evigeant/liquibase/assignees{/user}","branches_url":"https://api.github.com/repos/evigeant/liquibase/branches{/branch}","tags_url":"https://api.github.com/repos/evigeant/liquibase/tags","blobs_url":"https://api.github.com/repos/evigeant/liquibase/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/evigeant/liquibase/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/evigeant/liquibase/git/refs{/sha}","trees_url":"https://api.github.com/repos/evigeant/liquibase/git/trees{/sha}","statuses_url":"https://api.github.com/repos/evigeant/liquibase/statuses/{sha}","languages_url":"https://api.github.com/repos/evigeant/liquibase/languages","stargazers_url":"https://api.github.com/repos/evigeant/liquibase/stargazers","contributors_url":"https://api.github.com/repos/evigeant/liquibase/contributors","subscribers_url":"https://api.github.com/repos/evigeant/liquibase/subscribers","subscription_url":"https://api.github.com/repos/evigeant/liquibase/subscription","commits_url":"https://api.github.com/repos/evigeant/liquibase/commits{/sha}","git_commits_url":"https://api.github.com/repos/evigeant/liquibase/git/commits{/sha}","comments_url":"https://api.github.com/repos/evigeant/liquibase/comments{/number}","issue_comment_url":"https://api.github.com/repos/evigeant/liquibase/issues/comments{/number}","contents_url":"https://api.github.com/repos/evigeant/liquibase/contents/{+path}","compare_url":"https://api.github.com/repos/evigeant/liquibase/compare/{base}...{head}","merges_url":"https://api.github.com/repos/evigeant/liquibase/merges","archive_url":"https://api.github.com/repos/evigeant/liquibase/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/evigeant/liquibase/downloads","issues_url":"https://api.github.com/repos/evigeant/liquibase/issues{/number}","pulls_url":"https://api.github.com/repos/evigeant/liquibase/pulls{/number}","milestones_url":"https://api.github.com/repos/evigeant/liquibase/milestones{/number}","notifications_url":"https://api.github.com/repos/evigeant/liquibase/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/evigeant/liquibase/labels{/name}","releases_url":"https://api.github.com/repos/evigeant/liquibase/releases{/id}","created_at":"2012-01-09T17:01:43Z","updated_at":"2013-01-05T19:41:53Z","pushed_at":"2015-08-13T13:52:03Z","git_url":"git://github.com/evigeant/liquibase.git","ssh_url":"git@github.com:evigeant/liquibase.git","clone_url":"https://github.com/evigeant/liquibase.git","svn_url":"https://github.com/evigeant/liquibase","homepage":"liquibase.org","size":106036,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"liquibase:3.4.x","ref":"3.4.x","sha":"fd242bdb32d6946c99f1f9578d7883b281cd4336","user":{"login":"liquibase","id":438548,"avatar_url":"https://avatars.githubusercontent.com/u/438548?v=3","gravatar_id":"","url":"https://api.github.com/users/liquibase","html_url":"https://github.com/liquibase","followers_url":"https://api.github.com/users/liquibase/followers","following_url":"https://api.github.com/users/liquibase/following{/other_user}","gists_url":"https://api.github.com/users/liquibase/gists{/gist_id}","starred_url":"https://api.github.com/users/liquibase/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liquibase/subscriptions","organizations_url":"https://api.github.com/users/liquibase/orgs","repos_url":"https://api.github.com/users/liquibase/repos","events_url":"https://api.github.com/users/liquibase/events{/privacy}","received_events_url":"https://api.github.com/users/liquibase/received_events","type":"Organization","site_admin":false},"repo":{"id":2019791,"name":"liquibase","full_name":"liquibase/liquibase","owner":{"login":"liquibase","id":438548,"avatar_url":"https://avatars.githubusercontent.com/u/438548?v=3","gravatar_id":"","url":"https://api.github.com/users/liquibase","html_url":"https://github.com/liquibase","followers_url":"https://api.github.com/users/liquibase/followers","following_url":"https://api.github.com/users/liquibase/following{/other_user}","gists_url":"https://api.github.com/users/liquibase/gists{/gist_id}","starred_url":"https://api.github.com/users/liquibase/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liquibase/subscriptions","organizations_url":"https://api.github.com/users/liquibase/orgs","repos_url":"https://api.github.com/users/liquibase/repos","events_url":"https://api.github.com/users/liquibase/events{/privacy}","received_events_url":"https://api.github.com/users/liquibase/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/liquibase/liquibase","description":"Main Liquibase Source","fork":false,"url":"https://api.github.com/repos/liquibase/liquibase","forks_url":"https://api.github.com/repos/liquibase/liquibase/forks","keys_url":"https://api.github.com/repos/liquibase/liquibase/keys{/key_id}","collaborators_url":"https://api.github.com/repos/liquibase/liquibase/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/liquibase/liquibase/teams","hooks_url":"https://api.github.com/repos/liquibase/liquibase/hooks","issue_events_url":"https://api.github.com/repos/liquibase/liquibase/issues/events{/number}","events_url":"https://api.github.com/repos/liquibase/liquibase/events","assignees_url":"https://api.github.com/repos/liquibase/liquibase/assignees{/user}","branches_url":"https://api.github.com/repos/liquibase/liquibase/branches{/branch}","tags_url":"https://api.github.com/repos/liquibase/liquibase/tags","blobs_url":"https://api.github.com/repos/liquibase/liquibase/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/liquibase/liquibase/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/liquibase/liquibase/git/refs{/sha}","trees_url":"https://api.github.com/repos/liquibase/liquibase/git/trees{/sha}","statuses_url":"https://api.github.com/repos/liquibase/liquibase/statuses/{sha}","languages_url":"https://api.github.com/repos/liquibase/liquibase/languages","stargazers_url":"https://api.github.com/repos/liquibase/liquibase/stargazers","contributors_url":"https://api.github.com/repos/liquibase/liquibase/contributors","subscribers_url":"https://api.github.com/repos/liquibase/liquibase/subscribers","subscription_url":"https://api.github.com/repos/liquibase/liquibase/subscription","commits_url":"https://api.github.com/repos/liquibase/liquibase/commits{/sha}","git_commits_url":"https://api.github.com/repos/liquibase/liquibase/git/commits{/sha}","comments_url":"https://api.github.com/repos/liquibase/liquibase/comments{/number}","issue_comment_url":"https://api.github.com/repos/liquibase/liquibase/issues/comments{/number}","contents_url":"https://api.github.com/repos/liquibase/liquibase/contents/{+path}","compare_url":"https://api.github.com/repos/liquibase/liquibase/compare/{base}...{head}","merges_url":"https://api.github.com/repos/liquibase/liquibase/merges","archive_url":"https://api.github.com/repos/liquibase/liquibase/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/liquibase/liquibase/downloads","issues_url":"https://api.github.com/repos/liquibase/liquibase/issues{/number}","pulls_url":"https://api.github.com/repos/liquibase/liquibase/pulls{/number}","milestones_url":"https://api.github.com/repos/liquibase/liquibase/milestones{/number}","notifications_url":"https://api.github.com/repos/liquibase/liquibase/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/liquibase/liquibase/labels{/name}","releases_url":"https://api.github.com/repos/liquibase/liquibase/releases{/id}","created_at":"2011-07-08T20:08:20Z","updated_at":"2015-08-11T05:16:42Z","pushed_at":"2015-08-13T13:54:48Z","git_url":"git://github.com/liquibase/liquibase.git","ssh_url":"git@github.com:liquibase/liquibase.git","clone_url":"https://github.com/liquibase/liquibase.git","svn_url":"https://github.com/liquibase/liquibase","homepage":"liquibase.org","size":136858,"stargazers_count":755,"watchers_count":755,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":524,"mirror_url":null,"open_issues_count":31,"forks":524,"open_issues":31,"watchers":755,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/liquibase/liquibase/pulls/482"},"html":{"href":"https://github.com/liquibase/liquibase/pull/482"},"issue":{"href":"https://api.github.com/repos/liquibase/liquibase/issues/482"},"comments":{"href":"https://api.github.com/repos/liquibase/liquibase/issues/482/comments"},"review_comments":{"href":"https://api.github.com/repos/liquibase/liquibase/pulls/482/comments"},"review_comment":{"href":"https://api.github.com/repos/liquibase/liquibase/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/liquibase/liquibase/pulls/482/commits"},"statuses":{"href":"https://api.github.com/repos/liquibase/liquibase/statuses/9ac92ed44d6cf49947bd38fcc46159ec2dc9c664"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":2,"deletions":2,"changed_files":1}}