ce6a8a7e72
Local fallbacks were creating fake saves and resurrecting deleted rows. Pin and archive now live on chat_sessions so they follow the account. Co-authored-by: Cursor <cursoragent@cursor.com>
11 lines
259 B
PL/PgSQL
11 lines
259 B
PL/PgSQL
begin;
|
|
|
|
alter table public.chat_sessions
|
|
add column if not exists pinned boolean not null default false,
|
|
add column if not exists archived_at timestamptz null;
|
|
|
|
grant update (pinned, archived_at)
|
|
on table public.chat_sessions to authenticated;
|
|
|
|
commit;
|