fix mysql migration value
This commit is contained in:
parent
f7066473c1
commit
6806883a0d
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
`
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue