mascarpone/migrations/each_user/0007_contact-groups.sql

10 lines
371 B
MySQL
Raw Permalink Normal View History

2026-01-16 23:19:40 -06:00
create table if not exists groups (
2026-01-19 21:38:23 -06:00
contact_id integer not null references contacts(id) on delete cascade,
2026-01-16 23:19:40 -06:00
name text not null
);
2026-01-23 21:20:27 -06:00
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;