[Fix #2622] Change filters to proper JSONB

This commit is contained in:
Frederic Merizen 2018-09-20 16:18:21 +02:00
parent 1419e9b73f
commit 7d382837d9
4 changed files with 5 additions and 8 deletions

View file

@ -3,7 +3,8 @@ namespace :'2018_09_20_procedure_presentation_jsonb' do
ProcedurePresentation.update_all(
<<~SQL
displayed_fields = ('[' || ARRAY_TO_STRING(old_displayed_fields, ',') || ']')::JSONB,
sort = (sort #>> '{}')::jsonb
sort = (sort #>> '{}')::jsonb,
filters = (filters #>> '{}')::jsonb
SQL
)
end