Skip to content
Snippets Groups Projects
Commit 18ad6df9 authored by Andreas Kusalananda Kähäri's avatar Andreas Kusalananda Kähäri
Browse files

Fix SQL bugs.

parent 44af5d02
No related branches found
No related tags found
No related merge requests found
......@@ -15,9 +15,9 @@ ALTER TABLE splicing_event
# Update the new column using info from the old column and the
# attrib_type table.
UPDATE splicing_event se
JOIN attribute_type at ON (se.`type` = at.code)
SET se.attrib_type_id = at.attribut_type_id
WHERE at.attribut_type_id BETWEEN 300 AND 311;
JOIN attrib_type at ON (se.`type` = at.code)
SET se.attrib_type_id = at.attrib_type_id
WHERE at.attrib_type_id BETWEEN 300 AND 311;
# Drop the old column.
ALTER TABLE splicing_event DROP COLUMN `type`;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment