Files
brain/db/migrations/005_contact_source.sql
T
Andrew S Erwin b9721ff13f
release gate / check (push) Failing after 8m35s
initial commit on Federted servers
2026-10-19 16:23:55 -05:00

9 lines
529 B
SQL

-- 005_contact_source.sql — CardDAV provenance for deletion reconciliation
-- (review CR-07). Sync mirrors the configured address book, scoped by this
-- column: only contacts previously imported from the SAME source URL are
-- candidates for remote-deletion removal; manually created contacts (NULL)
-- and other address books' imports are never touched. Existing rows keep
-- NULL and are adopted (stamped with the source) the next time the server
-- returns them.
ALTER TABLE "Contact" ADD COLUMN IF NOT EXISTS source text;