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
Devrim Gunyel
core
Commits
52d12a9c
Commit
52d12a9c
authored
Jul 23, 2018
by
Piotr Gawron
Browse files
remove duplicate reaction ids
parent
dd74eff5
Changes
1
Hide whitespace changes
Inline
Side-by-side
persist/src/db/12.0.1/fix_db_20180723.sql
0 → 100644
View file @
52d12a9c
-- issue #461 - duplicates in reaction ids resolved
update
reaction_table
r
set
idreaction
=
concat
(
r
.
idreaction
,
'_'
,
r
.
iddb
)
from
(
select
idreaction
,
model_iddb
from
reaction_table
group
by
idreaction
,
model_iddb
having
count
(
*
)
>
1
)
t
where
r
.
idreaction
=
t
.
idreaction
and
r
.
model_iddb
=
t
.
model_iddb
;
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