fix(db): remove demo data auto-seeding to prevent resurrection of deleted items (v1.3.2)

This commit is contained in:
sorcier committed 2026-11-04 01:58:26 +01:00
1 parent e2af2c34c9
commit e6540c866b
5 files changed
+15 -238

No files matched your search

+2
View File
@@ -110,6 +110,8 @@ class PhonebookManager
if (!empty($activeExtIds)) {
$inClause = implode(',', $activeExtIds);
$db->exec("DELETE FROM phonebook_contacts WHERE is_internal = 1 AND extension_id IS NOT NULL AND extension_id NOT IN ({$inClause})");
} else {
$db->exec("DELETE FROM phonebook_contacts WHERE is_internal = 1");
}
}