Skip to content

Commit

Permalink
update instead of insert
Browse files Browse the repository at this point in the history
  • Loading branch information
itsakifa committed Jan 30, 2024
1 parent 8d185f4 commit 4c28534
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions datamodel/changelogs/0100/0100_add_signs_img.sql
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
DELETE FROM signalo_db.vl_official_sign where id = '5.02';

INSERT INTO signalo_db.vl_official_sign(
id, active, value_de, value_fr, value_it, value_ro, description_de, description_fr, description_it, description_ro, img_de, img_fr, img_it, img_ro, img_height, img_width, no_dynamic_inscription, default_inscription1, default_inscription2, default_inscription3, default_inscription4, directional_sign, img_de_right, img_fr_right, img_it_right, img_ro_right)
VALUES ('5.02', true, 'Anzeige von Entfernung und Richtung',
'Plaque indiquant la distance et la direction',
'Cartello indicante la distanza e la direzione', NULL, NULL, NULL, NULL, NULL, '502-l.svg', '502-l.svg', '502-l.svg', '502-l.svg', 80, 113, 0, '50 m', NULL, NULL, NULL, true, '502-r.svg', '502-r.svg', '502-r.svg', '502-r.svg');
UPDATE signalo_db.vl_official_sign
SET img_de='502-l.svg', img_fr='502-l.svg', img_it='502-l.svg', img_ro='502-l.svg',
directional_sign=true,
img_de_right='502-r.svg', img_fr_right='502-r.svg', img_it_right='502-r.svg', img_ro_right='502-r.svg'
WHERE id = '5.02';

0 comments on commit 4c28534

Please sign in to comment.