Started working on contact resolution
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
-- Revert participants table to remove contact_id column
|
||||
-- SQLite does not support DROP COLUMN directly, so we recreate the table without contact_id
|
||||
PRAGMA foreign_keys=off;
|
||||
CREATE TABLE participants_backup (
|
||||
id INTEGER NOT NULL PRIMARY KEY,
|
||||
display_name TEXT,
|
||||
is_me BOOL NOT NULL
|
||||
);
|
||||
INSERT INTO participants_backup (id, display_name, is_me)
|
||||
SELECT id, display_name, is_me
|
||||
FROM participants;
|
||||
DROP TABLE participants;
|
||||
ALTER TABLE participants_backup RENAME TO participants;
|
||||
PRAGMA foreign_keys=on;
|
||||
@@ -0,0 +1,2 @@
|
||||
-- Add contact_id column to participants to store an external contact identifier (e.g., Folks ID)
|
||||
ALTER TABLE participants ADD COLUMN contact_id TEXT;
|
||||
Reference in New Issue
Block a user