Skip to content

Commit 648ce9c

Browse files
committed
pg_table/conversation: Remove access_role and make epoch_timestamp a timestamptz
The access_role column is not used anymore, so we can just dervie the value of access_roles_v2 from it and persist that. The timestamptz type maps to UTCTime, which we use everywhere, so this is more convenient.
1 parent f633eda commit 648ce9c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

libs/wire-subsystems/postgres-migrations/20250908142515-create-conversation-tables.sql

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
CREATE TABLE conversation (
22
id uuid PRIMARY KEY,
33
access integer[],
4-
access_role integer,
54
access_roles_v2 integer[],
65
cells_state integer,
76
channel_add_permission integer,
87
cipher_suite integer,
98
creator uuid,
109
deleted boolean,
1110
epoch bigint,
12-
epoch_timestamp timestamp,
11+
epoch_timestamp timestamptz,
1312
group_conv_type integer,
1413
group_id bytea,
1514
message_timer bigint,

0 commit comments

Comments
 (0)