fixed Sonarqube Code Issues
Sonarqube Scanner / Build and analyze (push) Successful in 1m8s

This commit is contained in:
Florian Zumpe
2026-09-02 01:05:30 +02:00
parent 4b1b6eeced
commit be9df67e18
5 changed files with 85 additions and 67 deletions
@@ -1,3 +1,4 @@
-- Ergänzt den manuellen Freigabezeitpunkt für Strecken.
-- Neue Strecken bleiben unveröffentlicht, solange activated_at is NULL.
ALTER TABLE routes ADD COLUMN activated_at TEXT DEFAULT NULL;
ALTER TABLE routes ADD COLUMN activated_at TEXT DEFAULT NULL;
+1 -1
View File
@@ -27,7 +27,7 @@ CREATE TABLE IF NOT EXISTS routes (
CREATE TRIGGER IF NOT EXISTS routes_updated_at
AFTER UPDATE ON routes
FOR EACH ROW
WHEN NEW.updated_at = OLD.updated_at
WHEN NEW.updated_at IS OLD.updated_at
BEGIN
UPDATE routes
SET updated_at = CURRENT_TIMESTAMP