Skip to content

Commit

Permalink
8.5.2 update with stm_color
Browse files Browse the repository at this point in the history
  • Loading branch information
alf-cactus committed Nov 27, 2024
1 parent 804b041 commit d15ac39
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions roles/database/files/upgrade/8.5.2.sql
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
insert into stm_color (color_name, color_rgb) VALUES ('crete blue', '485cd4') ON CONFLICT DO NOTHING;
insert into stm_color (color_name, color_rgb) VALUES ('state blue', 'a186ed') ON CONFLICT DO NOTHING;
insert into stm_color (color_name, color_rgb) VALUES ('olive', '617d28') ON CONFLICT DO NOTHING;
insert into stm_color (color_name, color_rgb) VALUES ('dark gold', 'cdad00') ON CONFLICT DO NOTHING;
DO $do$ BEGIN
IF EXISTS (SELECT color_name FROM stm_color WHERE color_name='crete blue') THEN
INSERT INTO stm_color (color_name, color_rgb) VALUES ('crete blue', '485cd4')
END IF;
IF EXISTS (SELECT color_name FROM stm_color WHERE color_name='state blue') THEN
INSERT INTO stm_color (color_name, color_rgb) VALUES ('state blue', 'a186ed')
END IF;
IF EXISTS (SELECT color_name FROM stm_color WHERE color_name='olive') THEN
INSERT INTO stm_color (color_name, color_rgb) VALUES ('olive', '617d28')
END IF;
IF EXISTS (SELECT color_name FROM stm_color WHERE color_name='dark gold') THEN
INSERT INTO stm_color (color_name, color_rgb) VALUES ('dark gold', 'cdad00')
END IF;
END $do$;

0 comments on commit d15ac39

Please sign in to comment.