mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-05-07 11:39:18 +02:00
- AppLogger: JSON-line logger in storage/logs/form-submissions.log - Logs submissions (admin + partage) with IP, UA, thesis ID, author - Logs errors with context (post keys, share slug) - Migration runner (app/migrations/run.php) handles schema drift - 001_add_objet_column.sql fixes production DB missing 'objet' column - ThesisCreateController::getIdentifier() helper for logging
8 lines
380 B
SQL
8 lines
380 B
SQL
-- Add 'objet' column to theses table if it doesn't already exist.
|
|
-- Required: the admin form sends 'objet' in POST since commit ~Apr 2024
|
|
-- but older production databases may lack the column.
|
|
-- SQLite 3.35+ supports ALTER TABLE ADD COLUMN (bundled with PHP 8+).
|
|
|
|
ALTER TABLE theses ADD COLUMN objet TEXT NOT NULL DEFAULT 'tfe'
|
|
CHECK (objet IN ('tfe', 'thèse', 'frart'));
|