{"action":"closed","number":179,"pull_request":{"url":"https://api.github.com/repos/chucknorris/roundhouse/pulls/179","id":30246201,"html_url":"https://github.com/chucknorris/roundhouse/pull/179","diff_url":"https://github.com/chucknorris/roundhouse/pull/179.diff","patch_url":"https://github.com/chucknorris/roundhouse/pull/179.patch","issue_url":"https://api.github.com/repos/chucknorris/roundhouse/issues/179","number":179,"state":"closed","locked":false,"title":"Fix for bug #176: The creation of database in SQL 2000 does not work.","user":{"login":"sicil1ano","id":2143694,"avatar_url":"https://avatars.githubusercontent.com/u/2143694?v=3","gravatar_id":"","url":"https://api.github.com/users/sicil1ano","html_url":"https://github.com/sicil1ano","followers_url":"https://api.github.com/users/sicil1ano/followers","following_url":"https://api.github.com/users/sicil1ano/following{/other_user}","gists_url":"https://api.github.com/users/sicil1ano/gists{/gist_id}","starred_url":"https://api.github.com/users/sicil1ano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sicil1ano/subscriptions","organizations_url":"https://api.github.com/users/sicil1ano/orgs","repos_url":"https://api.github.com/users/sicil1ano/repos","events_url":"https://api.github.com/users/sicil1ano/events{/privacy}","received_events_url":"https://api.github.com/users/sicil1ano/received_events","type":"User","site_admin":false},"body":"This is a PR for the bug #176 .The fix uses the function @@VERSION of SQL Server to get the information about the current MS SQL Server instance (as explained also here: http://support2.microsoft.com/default.aspx?scid=kb;en-us;321185), and the function PATINDEX (https://technet.microsoft.com/en-us/library/aa276881%28v=sql.80%29.aspx) to check the specific pattern ('Microsoft SQL Server 2000'). In case the pattern is found (then PATINDEX returns an int > 0) and the database doesn't exist, the script creates the requested database. Let me know if you have other suggestions and/or edits.\r\n\r\nThis closes #176.","created_at":"2015-03-01T18:33:57Z","updated_at":"2015-07-03T03:00:48Z","closed_at":"2015-07-03T03:00:48Z","merged_at":null,"merge_commit_sha":"3d9527e535a410325eaf4d8f0d852a116c8eda75","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/chucknorris/roundhouse/pulls/179/commits","review_comments_url":"https://api.github.com/repos/chucknorris/roundhouse/pulls/179/comments","review_comment_url":"https://api.github.com/repos/chucknorris/roundhouse/pulls/comments{/number}","comments_url":"https://api.github.com/repos/chucknorris/roundhouse/issues/179/comments","statuses_url":"https://api.github.com/repos/chucknorris/roundhouse/statuses/fd7af5137e74d6d186f8dc029793268a22caaa05","head":{"label":"sicil1ano:master","ref":"master","sha":"fd7af5137e74d6d186f8dc029793268a22caaa05","user":{"login":"sicil1ano","id":2143694,"avatar_url":"https://avatars.githubusercontent.com/u/2143694?v=3","gravatar_id":"","url":"https://api.github.com/users/sicil1ano","html_url":"https://github.com/sicil1ano","followers_url":"https://api.github.com/users/sicil1ano/followers","following_url":"https://api.github.com/users/sicil1ano/following{/other_user}","gists_url":"https://api.github.com/users/sicil1ano/gists{/gist_id}","starred_url":"https://api.github.com/users/sicil1ano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sicil1ano/subscriptions","organizations_url":"https://api.github.com/users/sicil1ano/orgs","repos_url":"https://api.github.com/users/sicil1ano/repos","events_url":"https://api.github.com/users/sicil1ano/events{/privacy}","received_events_url":"https://api.github.com/users/sicil1ano/received_events","type":"User","site_admin":false},"repo":{"id":31504676,"name":"roundhouse","full_name":"sicil1ano/roundhouse","owner":{"login":"sicil1ano","id":2143694,"avatar_url":"https://avatars.githubusercontent.com/u/2143694?v=3","gravatar_id":"","url":"https://api.github.com/users/sicil1ano","html_url":"https://github.com/sicil1ano","followers_url":"https://api.github.com/users/sicil1ano/followers","following_url":"https://api.github.com/users/sicil1ano/following{/other_user}","gists_url":"https://api.github.com/users/sicil1ano/gists{/gist_id}","starred_url":"https://api.github.com/users/sicil1ano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sicil1ano/subscriptions","organizations_url":"https://api.github.com/users/sicil1ano/orgs","repos_url":"https://api.github.com/users/sicil1ano/repos","events_url":"https://api.github.com/users/sicil1ano/events{/privacy}","received_events_url":"https://api.github.com/users/sicil1ano/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sicil1ano/roundhouse","description":"RoundhousE is a Database Migration Utility for .NET using sql files and versioning based on source control","fork":true,"url":"https://api.github.com/repos/sicil1ano/roundhouse","forks_url":"https://api.github.com/repos/sicil1ano/roundhouse/forks","keys_url":"https://api.github.com/repos/sicil1ano/roundhouse/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sicil1ano/roundhouse/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sicil1ano/roundhouse/teams","hooks_url":"https://api.github.com/repos/sicil1ano/roundhouse/hooks","issue_events_url":"https://api.github.com/repos/sicil1ano/roundhouse/issues/events{/number}","events_url":"https://api.github.com/repos/sicil1ano/roundhouse/events","assignees_url":"https://api.github.com/repos/sicil1ano/roundhouse/assignees{/user}","branches_url":"https://api.github.com/repos/sicil1ano/roundhouse/branches{/branch}","tags_url":"https://api.github.com/repos/sicil1ano/roundhouse/tags","blobs_url":"https://api.github.com/repos/sicil1ano/roundhouse/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sicil1ano/roundhouse/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sicil1ano/roundhouse/git/refs{/sha}","trees_url":"https://api.github.com/repos/sicil1ano/roundhouse/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sicil1ano/roundhouse/statuses/{sha}","languages_url":"https://api.github.com/repos/sicil1ano/roundhouse/languages","stargazers_url":"https://api.github.com/repos/sicil1ano/roundhouse/stargazers","contributors_url":"https://api.github.com/repos/sicil1ano/roundhouse/contributors","subscribers_url":"https://api.github.com/repos/sicil1ano/roundhouse/subscribers","subscription_url":"https://api.github.com/repos/sicil1ano/roundhouse/subscription","commits_url":"https://api.github.com/repos/sicil1ano/roundhouse/commits{/sha}","git_commits_url":"https://api.github.com/repos/sicil1ano/roundhouse/git/commits{/sha}","comments_url":"https://api.github.com/repos/sicil1ano/roundhouse/comments{/number}","issue_comment_url":"https://api.github.com/repos/sicil1ano/roundhouse/issues/comments{/number}","contents_url":"https://api.github.com/repos/sicil1ano/roundhouse/contents/{+path}","compare_url":"https://api.github.com/repos/sicil1ano/roundhouse/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sicil1ano/roundhouse/merges","archive_url":"https://api.github.com/repos/sicil1ano/roundhouse/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sicil1ano/roundhouse/downloads","issues_url":"https://api.github.com/repos/sicil1ano/roundhouse/issues{/number}","pulls_url":"https://api.github.com/repos/sicil1ano/roundhouse/pulls{/number}","milestones_url":"https://api.github.com/repos/sicil1ano/roundhouse/milestones{/number}","notifications_url":"https://api.github.com/repos/sicil1ano/roundhouse/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sicil1ano/roundhouse/labels{/name}","releases_url":"https://api.github.com/repos/sicil1ano/roundhouse/releases{/id}","created_at":"2015-03-01T17:48:36Z","updated_at":"2015-03-15T09:09:47Z","pushed_at":"2015-03-15T09:09:45Z","git_url":"git://github.com/sicil1ano/roundhouse.git","ssh_url":"git@github.com:sicil1ano/roundhouse.git","clone_url":"https://github.com/sicil1ano/roundhouse.git","svn_url":"https://github.com/sicil1ano/roundhouse","homepage":"http://projectroundhouse.org","size":51472,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"chucknorris:master","ref":"master","sha":"1a89d2b71d8170241d82463eda66cc7e400df884","user":{"login":"chucknorris","id":150006,"avatar_url":"https://avatars.githubusercontent.com/u/150006?v=3","gravatar_id":"","url":"https://api.github.com/users/chucknorris","html_url":"https://github.com/chucknorris","followers_url":"https://api.github.com/users/chucknorris/followers","following_url":"https://api.github.com/users/chucknorris/following{/other_user}","gists_url":"https://api.github.com/users/chucknorris/gists{/gist_id}","starred_url":"https://api.github.com/users/chucknorris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chucknorris/subscriptions","organizations_url":"https://api.github.com/users/chucknorris/orgs","repos_url":"https://api.github.com/users/chucknorris/repos","events_url":"https://api.github.com/users/chucknorris/events{/privacy}","received_events_url":"https://api.github.com/users/chucknorris/received_events","type":"Organization","site_admin":false},"repo":{"id":369782,"name":"roundhouse","full_name":"chucknorris/roundhouse","owner":{"login":"chucknorris","id":150006,"avatar_url":"https://avatars.githubusercontent.com/u/150006?v=3","gravatar_id":"","url":"https://api.github.com/users/chucknorris","html_url":"https://github.com/chucknorris","followers_url":"https://api.github.com/users/chucknorris/followers","following_url":"https://api.github.com/users/chucknorris/following{/other_user}","gists_url":"https://api.github.com/users/chucknorris/gists{/gist_id}","starred_url":"https://api.github.com/users/chucknorris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chucknorris/subscriptions","organizations_url":"https://api.github.com/users/chucknorris/orgs","repos_url":"https://api.github.com/users/chucknorris/repos","events_url":"https://api.github.com/users/chucknorris/events{/privacy}","received_events_url":"https://api.github.com/users/chucknorris/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/chucknorris/roundhouse","description":"RoundhousE is a Database Migration Utility for .NET using sql files and versioning based on source control","fork":false,"url":"https://api.github.com/repos/chucknorris/roundhouse","forks_url":"https://api.github.com/repos/chucknorris/roundhouse/forks","keys_url":"https://api.github.com/repos/chucknorris/roundhouse/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chucknorris/roundhouse/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chucknorris/roundhouse/teams","hooks_url":"https://api.github.com/repos/chucknorris/roundhouse/hooks","issue_events_url":"https://api.github.com/repos/chucknorris/roundhouse/issues/events{/number}","events_url":"https://api.github.com/repos/chucknorris/roundhouse/events","assignees_url":"https://api.github.com/repos/chucknorris/roundhouse/assignees{/user}","branches_url":"https://api.github.com/repos/chucknorris/roundhouse/branches{/branch}","tags_url":"https://api.github.com/repos/chucknorris/roundhouse/tags","blobs_url":"https://api.github.com/repos/chucknorris/roundhouse/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chucknorris/roundhouse/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chucknorris/roundhouse/git/refs{/sha}","trees_url":"https://api.github.com/repos/chucknorris/roundhouse/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chucknorris/roundhouse/statuses/{sha}","languages_url":"https://api.github.com/repos/chucknorris/roundhouse/languages","stargazers_url":"https://api.github.com/repos/chucknorris/roundhouse/stargazers","contributors_url":"https://api.github.com/repos/chucknorris/roundhouse/contributors","subscribers_url":"https://api.github.com/repos/chucknorris/roundhouse/subscribers","subscription_url":"https://api.github.com/repos/chucknorris/roundhouse/subscription","commits_url":"https://api.github.com/repos/chucknorris/roundhouse/commits{/sha}","git_commits_url":"https://api.github.com/repos/chucknorris/roundhouse/git/commits{/sha}","comments_url":"https://api.github.com/repos/chucknorris/roundhouse/comments{/number}","issue_comment_url":"https://api.github.com/repos/chucknorris/roundhouse/issues/comments{/number}","contents_url":"https://api.github.com/repos/chucknorris/roundhouse/contents/{+path}","compare_url":"https://api.github.com/repos/chucknorris/roundhouse/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chucknorris/roundhouse/merges","archive_url":"https://api.github.com/repos/chucknorris/roundhouse/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chucknorris/roundhouse/downloads","issues_url":"https://api.github.com/repos/chucknorris/roundhouse/issues{/number}","pulls_url":"https://api.github.com/repos/chucknorris/roundhouse/pulls{/number}","milestones_url":"https://api.github.com/repos/chucknorris/roundhouse/milestones{/number}","notifications_url":"https://api.github.com/repos/chucknorris/roundhouse/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chucknorris/roundhouse/labels{/name}","releases_url":"https://api.github.com/repos/chucknorris/roundhouse/releases{/id}","created_at":"2009-11-12T02:54:12Z","updated_at":"2015-07-03T02:45:04Z","pushed_at":"2015-07-03T03:00:48Z","git_url":"git://github.com/chucknorris/roundhouse.git","ssh_url":"git@github.com:chucknorris/roundhouse.git","clone_url":"https://github.com/chucknorris/roundhouse.git","svn_url":"https://github.com/chucknorris/roundhouse","homepage":"http://projectroundhouse.org","size":77112,"stargazers_count":313,"watchers_count":313,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":124,"mirror_url":null,"open_issues_count":75,"forks":124,"open_issues":75,"watchers":313,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/chucknorris/roundhouse/pulls/179"},"html":{"href":"https://github.com/chucknorris/roundhouse/pull/179"},"issue":{"href":"https://api.github.com/repos/chucknorris/roundhouse/issues/179"},"comments":{"href":"https://api.github.com/repos/chucknorris/roundhouse/issues/179/comments"},"review_comments":{"href":"https://api.github.com/repos/chucknorris/roundhouse/pulls/179/comments"},"review_comment":{"href":"https://api.github.com/repos/chucknorris/roundhouse/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/chucknorris/roundhouse/pulls/179/commits"},"statuses":{"href":"https://api.github.com/repos/chucknorris/roundhouse/statuses/fd7af5137e74d6d186f8dc029793268a22caaa05"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":1,"review_comments":4,"commits":3,"additions":5,"deletions":5,"changed_files":1}}