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