mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-27 04:11:03 +00:00
Merge pull request #2112 from bradrydzewski/master
update default visibility migration
This commit is contained in:
commit
0d69426b2c
4 changed files with 4 additions and 4 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 = false 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 = false THEN 'public'
|
||||
ELSE 'private'
|
||||
END
|
||||
|
|
|
@ -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)
|
||||
`
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue