update database schema and update editor script
Sonarqube Scanner / Build and analyze (push) Failing after 26s

This commit is contained in:
Florian Zumpe
2026-09-02 00:53:22 +02:00
parent d6228e7e32
commit a66482a137
8 changed files with 455 additions and 55 deletions
@@ -1,7 +1,3 @@
-- Wegwichtel editor support: route activation timestamp.
-- Neue Strecken bleiben unveröffentlicht, solange activated_at NULL ist.
-- Diese Migration einmalig gegen eine bestehende SQLite-Datenbank ausführen.
-- Bei einer neu erzeugten Datenbank ohne Migrationslauf muss dieselbe Spalte
-- direkt in der CREATE-TABLE-Anweisung der routes-Tabelle enthalten sein:
-- activated_at DATETIME NULL
ALTER TABLE routes ADD COLUMN activated_at DATETIME NULL;
-- 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 NULL DEFAULT NULL;