Skip to content

Commit 7836636

Browse files
authored
event_streams_add_channel_id (#7)
* event_streams_add_channel_id * Delete db-2025-11-09.bak.sql
1 parent bf982db commit 7836636

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
alter table "public"."event_streams" add column if not exists "channel_id" character varying(255) null;
2+
3+
update "public"."event_streams" es set "channel_id" = (select tr.streaming_config ->> 'Channel_Id' from events e join truck_routes tr on e.truck_route_id = tr.id where e.id = es.event_id) where es."channel_id" is null;

0 commit comments

Comments
 (0)