Files
Wegwichtel/database/migrations/20260901_add_route_activated_at.sql
T
Florian Zumpe d6228e7e32
Sonarqube Scanner / Build and analyze (push) Failing after 1m54s
added css reference and test case
2026-09-02 00:21:18 +02:00

8 lines
455 B
SQL

-- 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;