Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
minerva
core
Commits
8c8ad6fc
Commit
8c8ad6fc
authored
May 06, 2019
by
Piotr Gawron
Browse files
pathways are included in db change
parent
b7f30b21
Changes
1
Hide whitespace changes
Inline
Side-by-side
persist/src/main/resources/db/migration/12.3.0~alpha.0/V12.3.0.20190503__z_index_to_elements_added.sql
View file @
8c8ad6fc
...
...
@@ -5,7 +5,7 @@ alter table reaction_table add column z integer;
with
v_element_table
as
(
select
id
,
row_number
()
over
(
order
by
width
*
height
desc
,
id
)
as
rn
from
element_table
where
not
element_type_db
like
'%COMPARTMENT%'
and
compartment_id
is
null
and
idcomplexdb
is
null
select
id
,
row_number
()
over
(
order
by
width
*
height
desc
,
id
)
as
rn
from
element_table
where
not
element_type_db
like
'%COMPARTMENT%'
and
not
element_type_db
like
'%PATHWAY%'
and
compartment_id
is
null
and
idcomplexdb
is
null
)
update
element_table
set
z
=
v_element_table
.
rn
from
v_element_table
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment