Skip to content
Snippets Groups Projects
Commit e72ea182 authored by julian's avatar julian
Browse files

fixed remaining init scripts for theia

parent 907375cf
No related branches found
No related tags found
No related merge requests found
......@@ -21,7 +21,12 @@ with raw_edges as(
select id, content->>'localPrincipal', 'has_owning_principal'
from vertex
where type='Subject' or type='FileObject'
where type='Subject'
UNION ALL
select id, content#>>'{localPrincipal,UUID}', 'has_owning_principal'
from vertex
where type='FileObject'
UNION ALL
select id, content#>>'{sourceUUID,UUID}', 'ingests'
......
......@@ -21,7 +21,12 @@ with new_edges as(
select content->>'uuid', content->>'localPrincipal', 'has_owning_principal'
from vertex
where type='Subject' or type='FileObject'
where type='Subject'
UNION ALL
select content->>'uuid', content#>>'{localPrincipal,UUID}', 'has_owning_principal'
from vertex
where type='FileObject'
UNION ALL
select content->>'uuid', content#>>'{sourceUUID,UUID}', 'ingests'
......
......@@ -21,14 +21,14 @@ begin
where type='Subject'
UNION ALL
select id, content#>>'{localPrincipal,UUID}', 'has_owning_principal'
select id, content->>'localPrincipal', 'has_owning_principal'
from new_vertices
where type='FileObject'
where type='Subject'
UNION ALL
select id, content->>'localPrincipal', 'has_owning_principal'
select id, content#>>'{localPrincipal,UUID}', 'has_owning_principal'
from new_vertices
where type='Subject'
where type='FileObject'
UNION ALL
select id, content#>>'{sourceUUID,UUID}', 'ingests'
......
......@@ -23,7 +23,12 @@ begin
select content->>'uuid', content->>'localPrincipal', 'has_owning_principal'
from new_vertices
where type='Subject' or type='FileObject'
where type='Subject'
UNION ALL
select content->>'uuid', content#>>'{localPrincipal,UUID}', 'has_owning_principal'
from new_vertices
where type='FileObject'
UNION ALL
select content->>'uuid', content#>>'{sourceUUID,UUID}', 'ingests'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment