[Fix #2622] Change filters to proper JSONB
This commit is contained in:
parent
1419e9b73f
commit
7d382837d9
4 changed files with 5 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue