oficina / equipo Public

Clone
git clone https://amadan.net/oficina/equipo

Plain git — no account needed to clone.

Download

Download this file

1ALTER TABLE chat_turns ADD COLUMN lane text;
2ALTER TABLE chat_messages ADD COLUMN lane text;
3ALTER TABLE chat_events ADD COLUMN lane text;
4ALTER TABLE chat_cards ADD COLUMN lane text;
5ALTER TABLE chat_tool_calls ADD COLUMN lane text;
6-- Every message from before lanes is the Coordinator's, and a key is the
7-- person's per lane: the index widens to (person, lane, key), keeping
8-- every row and key it held.
9UPDATE chat_messages SET lane = '' WHERE lane IS NULL;
10DROP INDEX chat_message_key;
11CREATE UNIQUE INDEX chat_message_key ON chat_messages(person, lane, idempotency_key);
12