ory-am/hydra

View on GitHub
persistence/sql/migrations/20220513000001000003_string_slice_json.sqlite.up.sql

Summary

Maintainability
Test Coverage
-- Migration generated by the command below; DO NOT EDIT.
-- hydra:generate hydra migrate gen


UPDATE hydra_oauth2_flow SET requested_scope = '["' || REPLACE(requested_scope,'|','","') || '"]' WHERE requested_scope <> '[]';
UPDATE hydra_oauth2_flow SET requested_at_audience = '["' || REPLACE(requested_at_audience,'|','","') || '"]' WHERE requested_at_audience <> '[]';
UPDATE hydra_oauth2_flow SET amr = '["' || REPLACE(amr,'|','","') || '"]' WHERE amr <> '[]';
UPDATE hydra_oauth2_flow SET granted_scope = '["' || REPLACE(granted_scope,'|','","') || '"]' WHERE granted_scope <> '[]';
UPDATE hydra_oauth2_flow SET granted_at_audience = '["' || REPLACE(granted_at_audience,'|','","') || '"]' WHERE granted_at_audience <> '[]';