Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Devrim Gunyel
core
Commits
33056d70
Commit
33056d70
authored
Jul 01, 2019
by
Piotr Gawron
Browse files
update script fixed for machines where all elements are inside compartments
parent
17feca8a
Changes
2
Hide whitespace changes
Inline
Side-by-side
CHANGELOG
View file @
33056d70
minerva
(
13.1.1
)
stable
;
urgency
=
medium
*
Bug
fix
:
adding
gene
mapping
before
the
genome
caused
an
error
(#
835
)
*
Bug
fix
:
"Terms of Use"
change
to
"Terms of Service"
in
all
places
(#
843
)
*
Bug
fix
:
upgrade
to
13.1.0
crashed
on
machines
where
every
element
was
inside
compartment
(#
856
)
--
Piotr
Gawron
<
piotr
.
gawron
@
uni
.
lu
>
Fri
,
28
Jun
2019
17
:
00
:
00
+
0200
...
...
persist/src/main/resources/db/migration/13.1.0~alpha.0/V13.1.0.20190503__z_index_to_elements_added.sql
View file @
33056d70
...
...
@@ -2,6 +2,8 @@
alter
table
element_table
add
column
z
integer
;
alter
table
reaction_table
add
column
z
integer
;
--add artificial element outside compartment, so the update queries will always return non-null values
insert
into
element_table
(
id
,
element_type_db
,
visibility_level
,
width
,
height
)
values
(
-
1
,
'GENERIC_PROTEIN'
,
0
,
1
,
1
);
with
v_element_table
as
(
...
...
@@ -69,3 +71,6 @@ update element_table set z = (select max(z) from element_table) where z is null;
ALTER
TABLE
element_table
ALTER
COLUMN
z
SET
NOT
NULL
;
ALTER
TABLE
reaction_table
ALTER
COLUMN
z
SET
NOT
NULL
;
--remove artificial element added at the beginning of the script
delete
from
element_table
where
id
=
-
1
;
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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