Kontakte mit dem Handy abgleichen über Nextcloud-Adressbuch, .vcf einlesen (0.44.0)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AmyPfuNc4sCRfaF3oURXZz
This commit is contained in:
31
src/server/migrations/028_kontakte_abgleich.sql
Normal file
31
src/server/migrations/028_kontakte_abgleich.sql
Normal file
@@ -0,0 +1,31 @@
|
||||
-- Kontakte mit dem Handy abgleichen über ein Adressbuch in der Nextcloud (Henning, 04.11.2026).
|
||||
-- Der Kontakt bekommt Mobilnummer und Adresse, wie sie im Handy stehen.
|
||||
alter table kontakt
|
||||
add column mobil text,
|
||||
add column strasse text,
|
||||
add column plz text,
|
||||
add column ort text;
|
||||
|
||||
-- Je Karte im Adressbuch: zu welchem Kontakt sie gehört und welcher Stand zuletzt auf beiden Seiten gleich war.
|
||||
-- Ohne Änderungsprotokoll und nicht in der Sicherungsdatei: der Abgleich baut sie neu auf.
|
||||
create table kontakt_abgleich (
|
||||
href text primary key,
|
||||
-- null: im Programm gelöscht, die Karte wird beim nächsten Abgleich im Adressbuch entfernt
|
||||
kontakt_id uuid unique references kontakt (id) on delete set null,
|
||||
uid text not null,
|
||||
etag text,
|
||||
karte text not null,
|
||||
-- Fingerabdruck der gepflegten Felder beim letzten Abgleich
|
||||
stand text not null,
|
||||
-- im Handy gelöscht; der Kontakt bleibt im Programm
|
||||
geloescht boolean not null default false,
|
||||
geaendert_am timestamptz not null default now()
|
||||
);
|
||||
|
||||
-- letzter Lauf je Abgleich, ohne Protokoll (läuft alle paar Minuten)
|
||||
create table abgleich_stand (
|
||||
art text primary key,
|
||||
zuletzt timestamptz,
|
||||
meldung text,
|
||||
fehler text
|
||||
);
|
||||
Reference in New Issue
Block a user