mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-05-07 11:39:18 +02:00
15 lines
1.2 KiB
SQL
15 lines
1.2 KiB
SQL
-- ── apropos_contents table (structured data for the "À propos" page) ───────
|
|
-- Replaces config/apropos.php.
|
|
CREATE TABLE IF NOT EXISTS apropos_contents (
|
|
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
|
key TEXT NOT NULL UNIQUE, -- 'contacts', 'credits', 'erg_url'
|
|
value TEXT, -- JSON array for contacts/credits, plain string for erg_url
|
|
updated_at DATETIME DEFAULT CURRENT_TIMESTAMP
|
|
);
|
|
|
|
-- Seed with the current defaults from config/apropos.php
|
|
INSERT OR IGNORE INTO apropos_contents (key, value) VALUES
|
|
('contacts', '[{"name":"Laurent Leprince","role":"Bibliothèque d''architecture, d''ingénierie architecturale, d''urbanisme (BAIU) :","email":"laurent.leprince@uclouvain.be"},{"name":"Xavier Gorgol","role":"Responsable des mémoires de l''ERG :","email":"xavier.gorgol@erg.be"},{"name":"Brigitte Ledune","role":"Cours de suivi de mémoire :","email":"brigitte.ledune@erg.be"}]'),
|
|
('credits', '[{"label":"Design & développement","value":"Olivia Marly, Théophile Gerveau-Mercie & Théo Hennequin"},{"label":"Typographies","value":"Ductus (Amélie Dumont) & BBB DM Sans"}]'),
|
|
('erg_url', 'https://erg.be');
|