fix: sqlite migration drops allowed user groups

This commit is contained in:
Elias Schneider
2025-08-24 23:07:50 +02:00
parent 4b086cebcd
commit d6d1a4ced2
73 changed files with 355 additions and 62 deletions

View File

@@ -1,7 +1,11 @@
PRAGMA foreign_keys=OFF;
BEGIN;
UPDATE app_config_variables
SET value = CASE
WHEN value = 'true' AND (SELECT value FROM app_config_variables WHERE key = 'smtpPort' LIMIT 1) = '587' THEN 'starttls'
WHEN value = 'true' THEN 'tls'
ELSE 'none'
END
WHERE key = 'smtpTls';
WHERE key = 'smtpTls';
COMMIT;
PRAGMA foreign_keys=ON;