fix mysql migration value

This commit is contained in:
Brad Rydzewski 2017-07-12 15:22:49 -04:00
parent f7066473c1
commit 6806883a0d
2 changed files with 2 additions and 2 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 = true 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 = true THEN 'public'
ELSE 'private'
END