Files
EvoBGP/migrations/sqlite/000002_speaker_publish.up.sql
T

6 lines
367 B
SQL

-- SQLite: add columns (IF NOT EXISTS per column not supported — use new table copy if needed).
-- pragma: skip if columns exist — simplest: ALTER TABLE ADD COLUMN (SQLite allows multiple ADD).
ALTER TABLE bgp_speaker ADD COLUMN published_revision_id TEXT REFERENCES config_revision (id) ON DELETE SET NULL;
ALTER TABLE bgp_speaker ADD COLUMN published_at TEXT;