Skip to content

Commit

Permalink
fixed tumonline_room_nr not being set
Browse files Browse the repository at this point in the history
  • Loading branch information
CommanderStorm committed May 6, 2024
1 parent 09ab40c commit f952a79
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ alter table de add column type_common_name TEXT NOT NULL GENERATED ALWAYS AS (CA
alter table de drop column type;
alter table de add column type TEXT NOT NULL GENERATED ALWAYS AS (CAST (data->>'type' AS TEXT)) STORED;
alter table de add column calendar_url TEXT GENERATED ALWAYS AS (CAST (data->'props'->>'calendar_url' AS TEXT)) STORED;
alter table de drop column tumonline_room_nr;
alter table de add column tumonline_room_nr TEXT GENERATED ALWAYS AS (CAST (data->'props'->>'tumonline_room_nr' AS INTEGER)) STORED;

alter table en alter column data type json using data::json;
alter table en drop column lat;
Expand All @@ -28,3 +30,5 @@ alter table en add column type_common_name TEXT NOT NULL GENERATED ALWAYS AS (CA
alter table en drop column type;
alter table en add column type TEXT NOT NULL GENERATED ALWAYS AS (CAST (data->>'type' AS TEXT)) STORED;
alter table en add column calendar_url TEXT GENERATED ALWAYS AS (CAST (data->'props'->>'calendar_url' AS TEXT)) STORED;
alter table en drop column tumonline_room_nr;
alter table en add column tumonline_room_nr TEXT GENERATED ALWAYS AS (CAST (data->'props'->>'tumonline_room_nr' AS INTEGER)) STORED;

0 comments on commit f952a79

Please sign in to comment.