mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-01-22 23:28:40 +00:00
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 = `
|
var updateTableSetRepoVisibility = `
|
||||||
UPDATE repos
|
UPDATE repos
|
||||||
SET repo_visibility = CASE
|
SET repo_visibility = CASE
|
||||||
WHEN repo_private = 0 THEN 'public'
|
WHEN repo_private = true THEN 'public'
|
||||||
ELSE 'private'
|
ELSE 'private'
|
||||||
END
|
END
|
||||||
`
|
`
|
||||||
|
|
|
@ -6,6 +6,6 @@ ALTER TABLE repos ADD COLUMN repo_visibility VARCHAR(50)
|
||||||
|
|
||||||
UPDATE repos
|
UPDATE repos
|
||||||
SET repo_visibility = CASE
|
SET repo_visibility = CASE
|
||||||
WHEN repo_private = 0 THEN 'public'
|
WHEN repo_private = true THEN 'public'
|
||||||
ELSE 'private'
|
ELSE 'private'
|
||||||
END
|
END
|
||||||
|
|
Loading…
Reference in a new issue