feat(outlook): fix calendar sync format and enable bidirectional task-to-outlook scheduling

This commit is contained in:
2026-09-09 12:10:54 +02:00
parent 60f458b28a
commit 247fb4cd26
5 changed files with 473 additions and 55 deletions
+6 -1
View File
@@ -118,7 +118,12 @@ function ensure_tables_exist(PDO $pdo): void {
// Controleer of de hoofdtabel 'users' al bestaat
$result = $pdo->query("SHOW TABLES LIKE 'users'");
if ($result && $result->rowCount() > 0) {
// Tabellen bestaan al! Geen actie nodig.
// Tabellen bestaan al. Voer eventuele niet-destructieve kolom-upgrades uit indien nodig
try {
$pdo->exec("ALTER TABLE tasks MODIFY external_id VARCHAR(255) NULL");
} catch (Throwable $t) {
// Kolom bestaat wellicht al of heeft al de juiste lengte
}
return;
}