diff options
Diffstat (limited to 'lorrycontroller/migrations')
-rw-r--r-- | lorrycontroller/migrations/0003-generalise-troves.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lorrycontroller/migrations/0003-generalise-troves.py b/lorrycontroller/migrations/0003-generalise-troves.py index bacd2ad..7219ec0 100644 --- a/lorrycontroller/migrations/0003-generalise-troves.py +++ b/lorrycontroller/migrations/0003-generalise-troves.py @@ -34,7 +34,7 @@ yoyo.step('INSERT INTO hosts ' 'SELECT trovehost, protocol, username, password, ' "CASE WHEN gitlab_token IS NULL THEN 'trove' ELSE 'gitlab' END, " "CASE WHEN gitlab_token IS NULL THEN '{}' " - "ELSE json_object('private-token', gitlab_token) END, " + "ELSE '{\"private-token\":\"' || gitlab_token || '\"}' END, " 'lorry_interval, lorry_timeout, ls_interval, ls_last_run, prefixmap, ' 'ignore ' 'FROM troves') |