Merge pull request #2112 from bradrydzewski/master

update default visibility migration
This commit is contained in:
Brad Rydzewski 2017-07-12 17:22:46 -04:00 committed by GitHub
commit 0d69426b2c
4 changed files with 4 additions and 4 deletions

View file

@ -474,7 +474,7 @@ ALTER TABLE repos ADD COLUMN repo_visibility VARCHAR(50)
var updateTableSetRepoVisibility = `
UPDATE repos
SET repo_visibility = CASE
WHEN repo_private = 0 THEN 'public'
WHEN repo_private = false THEN 'public'
ELSE 'private'
END
`

View file

@ -6,6 +6,6 @@ ALTER TABLE repos ADD COLUMN repo_visibility VARCHAR(50)
UPDATE repos
SET repo_visibility = CASE
WHEN repo_private = 0 THEN 'public'
WHEN repo_private = false THEN 'public'
ELSE 'private'
END

View file

@ -474,7 +474,7 @@ ALTER TABLE repos ADD COLUMN repo_visibility VARCHAR(50)
var updateTableSetRepoVisibility = `
UPDATE repos
SET repo_visibility = (CASE
WHEN repo_private = true THEN 'public'
WHEN repo_private = false THEN 'public'
ELSE 'private'
END)
`

View file

@ -6,6 +6,6 @@ ALTER TABLE repos ADD COLUMN repo_visibility VARCHAR(50)
UPDATE repos
SET repo_visibility = (CASE
WHEN repo_private = true THEN 'public'
WHEN repo_private = false THEN 'public'
ELSE 'private'
END)