mascarpone/migrations/each_user/0007_contact-groups.sql
Robert Perce a0afb6dfd3
Some checks failed
/ integration-test--firefox (push) Failing after 3m6s
feat: full group support
2026-01-23 21:20:27 -06:00

9 lines
371 B
SQL

create table if not exists groups (
contact_id integer not null references contacts(id) on delete cascade,
name text not null
);
alter table contact_mentions rename to journal_mentions;
alter table journal_mentions add column url text not null default '';
update journal_mentions set url = '/contact/'||contact_id;
alter table journal_mentions drop column contact_id;