9796a1e648
The "redirectURLs" field in the client metadata has been updated to the correct "redirect_uris". To allow backwards compatibility use Postgres' JSON features to update the actual JSON in the text field. json_build_object was introduced in Postgres 9.4. So update the documentations to require at least this version.
9 lines
267 B
SQL
9 lines
267 B
SQL
-- +migrate Up
|
|
UPDATE client_identity
|
|
SET metadata = text(
|
|
json_build_object(
|
|
'redirectURLs', json(json(metadata)->>'redirectURLs'),
|
|
'redirect_uris', json(json(metadata)->>'redirectURLs')
|
|
)
|
|
)
|
|
WHERE (json(metadata)->>'redirect_uris') IS NULL;
|