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
d49c67a7
Commit
d49c67a7
authored
Jul 09, 2020
by
Piotr Gawron
Browse files
db migration files merged
parent
2d71c156
Pipeline
#29609
failed with stage
in 15 minutes and 43 seconds
Changes
14
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
persist/src/main/resources/db/migration/hsql/15.0.0~alpha.2/V15.0.0.20200205__ctd_cache_removed.sql
View file @
d49c67a7
...
...
@@ -497,7 +497,7 @@ CREATE TABLE public.plugin_data_entry_table (
plugin_id
integer
NOT
NULL
,
user_id
integer
,
key
character
varying
(
1024
)
NOT
NULL
,
value
character
varying
(
2
048
)
NOT
NULL
value
character
varying
(
1
048
576
)
NOT
NULL
);
CREATE
TABLE
public
.
plugin_table
(
...
...
persist/src/main/resources/db/migration/hsql/15.0.0~beta.2/V15.0.0.20200317_2__element_text_position.sql
0 → 100644
View file @
d49c67a7
-- alignment columns
alter
table
element_table
add
column
name_horizontal_align
character
varying
(
255
);
alter
table
element_table
add
column
name_vertical_align
character
varying
(
255
);
update
element_table
set
name_horizontal_align
=
'LEFT'
where
name_point
is
not
null
;
update
element_table
set
name_vertical_align
=
'TOP'
where
name_point
is
not
null
;
update
element_table
set
name_horizontal_align
=
'CENTER'
where
name_point
is
null
;
update
element_table
set
name_vertical_align
=
'MIDDLE'
where
name_point
is
null
;
--temporary coordinates
alter
table
element_table
add
column
name_x
double
precision
;
alter
table
element_table
add
column
name_y
double
precision
;
--coordinates of complex text
update
element_table
set
name_x
=
x
+
(
width
/
2
)
where
element_type_db
=
'COMPLEX'
;
update
element_table
set
name_y
=
y
+
height
-
font_size
where
element_type_db
=
'COMPLEX'
;
--coordinates of other species
update
element_table
set
name_x
=
x
+
(
width
/
2
)
where
name_x
is
null
and
name_point
is
null
;
update
element_table
set
name_y
=
y
+
(
height
/
2
)
where
name_y
is
null
and
name_point
is
null
;
update
element_table
set
name_point
=
concat
(
name_x
,
','
,
name_y
)
where
name_point
is
null
;
alter
table
element_table
drop
column
name_x
;
alter
table
element_table
drop
column
name_y
;
--not null
alter
table
element_table
alter
column
name_point
set
not
null
;
alter
table
element_table
alter
column
name_horizontal_align
set
not
null
;
alter
table
element_table
alter
column
name_vertical_align
set
not
null
;
persist/src/main/resources/db/migration/hsql/15.0.0~beta.2/V15.0.0.20200317__rect_color_split_to_border_and_fill.sql
0 → 100644
View file @
d49c67a7
alter
table
layer_rect_table
rename
column
color
to
border_color
;
alter
table
layer_rect_table
add
column
fill_color
VARBINARY
(
1
G
);
persist/src/main/resources/db/migration/15.0.0~beta.5/V15.0.0.20200615__links_to_eco.sql
→
persist/src/main/resources/db/migration/
hsql/
15.0.0~beta.5/V15.0.0.20200615__links_to_eco.sql
View file @
d49c67a7
File moved
persist/src/main/resources/db/migration/hsql/15.1.0~alpha.0/V15.1.0.20200619__reset_password_token.sql
0 → 100644
View file @
d49c67a7
CREATE
SEQUENCE
reset_password_token_sequence
START
WITH
1
INCREMENT
BY
1
NO
MINVALUE
NO
MAXVALUE
;
CREATE
TABLE
reset_password_token_table
(
id
integer
DEFAULT
nextval
(
'public.reset_password_token_sequence'
)
NOT
NULL
,
token
character
varying
(
255
)
NOT
NULL
,
user_id
integer
not
null
,
expires
timestamp
without
time
zone
,
CONSTRAINT
reset_password_token_pk
PRIMARY
KEY
(
id
),
CONSTRAINT
reset_password_token_user_fk
FOREIGN
KEY
(
user_id
)
REFERENCES
user_table
(
id
)
MATCH
SIMPLE
ON
UPDATE
NO
ACTION
ON
DELETE
NO
ACTION
);
persist/src/main/resources/db/migration/15.1.0~alpha.0/V15.1.0.20200624__process_coordinates.sql
→
persist/src/main/resources/db/migration/
hsql/
15.1.0~alpha.0/V15.1.0.20200624__process_coordinates.sql
View file @
d49c67a7
File moved
persist/src/main/resources/db/migration/14.0.11/V14.0.11.20200330__inifinity_kinetic_parameter.sql
→
persist/src/main/resources/db/migration/
postgres/
14.0.11/V14.0.11.20200330__inifinity_kinetic_parameter.sql
View file @
d49c67a7
File moved
persist/src/main/resources/db/migration/14.0.12/V14.0.12.20200511__plugin_data.sql
→
persist/src/main/resources/db/migration/
postgres/
14.0.12/V14.0.12.20200511__plugin_data.sql
View file @
d49c67a7
File moved
persist/src/main/resources/db/migration/15.0.0~beta.2/V15.0.0.20200317_2__element_text_position.sql
→
persist/src/main/resources/db/migration/
postgres/
15.0.0~beta.2/V15.0.0.20200317_2__element_text_position.sql
View file @
d49c67a7
File moved
persist/src/main/resources/db/migration/15.0.0~beta.2/V15.0.0.20200317__rect_color_split_to_border_and_fill.sql
→
persist/src/main/resources/db/migration/
postgres/
15.0.0~beta.2/V15.0.0.20200317__rect_color_split_to_border_and_fill.sql
View file @
d49c67a7
File moved
persist/src/main/resources/db/migration/postgres/15.0.0~beta.5/V15.0.0.20200615__links_to_eco.sql
0 → 100644
View file @
d49c67a7
delete
from
cache_query_table
where
query
like
'%urn:miriam:obo.eco%'
;
persist/src/main/resources/db/migration/15.1.0~alpha.0/V15.1.0.20200619__reset_password_token.sql
→
persist/src/main/resources/db/migration/
postgres/
15.1.0~alpha.0/V15.1.0.20200619__reset_password_token.sql
View file @
d49c67a7
File moved
persist/src/main/resources/db/migration/postgres/15.1.0~alpha.0/V15.1.0.20200624__process_coordinates.sql
0 → 100644
View file @
d49c67a7
alter
table
reaction_table
add
column
process_coordinates
character
varying
(
255
);
\ No newline at end of file
web/src/test/java/lcsb/mapviewer/web/ControllerIntegrationTest.java
View file @
d49c67a7
...
...
@@ -306,13 +306,7 @@ abstract public class ControllerIntegrationTest {
Element
element
=
createProtein
();
map
.
addElement
(
element
);
Element
element2
=
new
SimpleMolecule
(
"s2"
);
element2
.
setName
(
"water"
);
element2
.
setWidth
(
100.0
);
element2
.
setHeight
(
20.0
);
element2
.
setX
(
10
);
element2
.
setX
(
20
);
element2
.
setZ
(
2
);
Element
element2
=
createSimpleMolecule
();
map
.
addElement
(
element2
);
Reactant
reactant
=
new
Reactant
(
element2
);
...
...
@@ -338,10 +332,24 @@ abstract public class ControllerIntegrationTest {
return
project
;
}
private
Element
createSimpleMolecule
()
{
Element
element2
=
new
SimpleMolecule
(
"s"
+(
counter
++));
element2
.
setName
(
"water"
);
element2
.
setWidth
(
100.0
);
element2
.
setHeight
(
20.0
);
element2
.
setX
(
10
);
element2
.
setX
(
20
);
element2
.
setZ
(
2
);
element2
.
setNamePoint
(
element2
.
getCenter
());
element2
.
setNameHorizontalAlign
(
HorizontalAlign
.
CENTER
);
element2
.
setNameVerticalAlign
(
VerticalAlign
.
MIDDLE
);
return
element2
;
}
int
counter
=
1
;
private
GenericProtein
createProtein
()
{
GenericProtein
element
=
new
GenericProtein
(
"
p
"
+(
counter
++));
GenericProtein
element
=
new
GenericProtein
(
"
s
"
+(
counter
++));
element
.
setName
(
"GSTA4"
);
element
.
setWidth
(
100.0
);
element
.
setHeight
(
20.0
);
...
...
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