Skip to content
Snippets Groups Projects
Commit 56a402e9 authored by kfilippopolitis's avatar kfilippopolitis
Browse files

Small fix in migration script

parent 7e6e4aac
No related branches found
No related tags found
1 merge request!21Bug-482/output_error_on_old_experiments
...@@ -23,8 +23,8 @@ DROP COLUMN model_slug; ...@@ -23,8 +23,8 @@ DROP COLUMN model_slug;
ALTER TABLE experiment RENAME algorithms TO algorithm; ALTER TABLE experiment RENAME algorithms TO algorithm;
UPDATE experiment SET algorithm = (algorithm::json ->> 0); UPDATE experiment SET algorithm = (algorithm::json ->> 0);
UPDATE experiment SET algorithmId = (algorithm::json ->> 'name');
ALTER TABLE experiment ADD COLUMN algorithmId text; ALTER TABLE experiment ADD COLUMN algorithmId text;
UPDATE experiment SET algorithmId = (algorithm::json ->> 'name');
UPDATE experiment SET result = result::json #>>'{0,result}' WHERE (algorithm::json->>'type') <> 'workflow'; UPDATE experiment SET result = result::json #>>'{0,result}' WHERE (algorithm::json->>'type') <> 'workflow';
ALTER TABLE experiment ALTER TABLE experiment
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment