{"action":"closed","issue":{"url":"https://api.github.com/repos/ErikEJ/SqlCeToolbox/issues/6","labels_url":"https://api.github.com/repos/ErikEJ/SqlCeToolbox/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/ErikEJ/SqlCeToolbox/issues/6/comments","events_url":"https://api.github.com/repos/ErikEJ/SqlCeToolbox/issues/6/events","html_url":"https://github.com/ErikEJ/SqlCeToolbox/issues/6","id":120553422,"number":6,"title":"Diff api - change nullable column to not nullable","user":{"login":"ErikEJ","id":4169187,"avatar_url":"https://avatars.githubusercontent.com/u/4169187?v=3","gravatar_id":"","url":"https://api.github.com/users/ErikEJ","html_url":"https://github.com/ErikEJ","followers_url":"https://api.github.com/users/ErikEJ/followers","following_url":"https://api.github.com/users/ErikEJ/following{/other_user}","gists_url":"https://api.github.com/users/ErikEJ/gists{/gist_id}","starred_url":"https://api.github.com/users/ErikEJ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ErikEJ/subscriptions","organizations_url":"https://api.github.com/users/ErikEJ/orgs","repos_url":"https://api.github.com/users/ErikEJ/repos","events_url":"https://api.github.com/users/ErikEJ/events{/privacy}","received_events_url":"https://api.github.com/users/ErikEJ/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ErikEJ/SqlCeToolbox/labels/api","name":"api","color":"bfe5bf"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/ErikEJ/SqlCeToolbox/milestones/2","html_url":"https://github.com/ErikEJ/SqlCeToolbox/milestones/Backlog","labels_url":"https://api.github.com/repos/ErikEJ/SqlCeToolbox/milestones/2/labels","id":1450376,"number":2,"title":"Backlog","description":"These issues are \"up for grabs\" and not assigned to a milestone yet","creator":{"login":"ErikEJ","id":4169187,"avatar_url":"https://avatars.githubusercontent.com/u/4169187?v=3","gravatar_id":"","url":"https://api.github.com/users/ErikEJ","html_url":"https://github.com/ErikEJ","followers_url":"https://api.github.com/users/ErikEJ/followers","following_url":"https://api.github.com/users/ErikEJ/following{/other_user}","gists_url":"https://api.github.com/users/ErikEJ/gists{/gist_id}","starred_url":"https://api.github.com/users/ErikEJ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ErikEJ/subscriptions","organizations_url":"https://api.github.com/users/ErikEJ/orgs","repos_url":"https://api.github.com/users/ErikEJ/repos","events_url":"https://api.github.com/users/ErikEJ/events{/privacy}","received_events_url":"https://api.github.com/users/ErikEJ/received_events","type":"User","site_admin":false},"open_issues":7,"closed_issues":2,"state":"open","created_at":"2015-12-08T17:33:01Z","updated_at":"2015-12-11T16:22:32Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2015-12-05T13:09:45Z","updated_at":"2015-12-11T16:22:32Z","closed_at":"2015-12-11T16:22:32Z","body":"I changed a nullable column to non nullable and compared the dbs. The generated script looks like this:\r\n -- Script Date: 05.05.2011 11:31 - Generated by ExportSqlCe version 3.5.0.11\r\n ALTER TABLE [TABLE] ALTER COLUMN [COLUMN] nvarchar(4000) NOT NULL \r\n GO\r\n  \r\n I think the generated script should look like this (in this case the default value is '')\r\n UPDATE [TABLE] SET [COLUMN]='' WHERE [COLUMN] IS NULL\r\n GO\r\n ALTER TABLE [TABLE] ALTER COLUMN [COLUMN] nvarchar(4000) NOT NULL \r\n GO\r\n  \r\n Best regards \r\n Matthias"}}