# TODO ## Fixes - [x] Fix CSV import UNIQUE constraint crash: skip rows whose identifier already exists in DB - [x] Auto-migrate both test.db and posterg.db on `just serve` via scripts/migrate.sh - [x] Fix wrong `require_once` depth in `public/admin/actions/page.php` (`../../` → `../../../`) - [x] Fix same path depth bug in `formulaire.php` and `publish.php` - [x] Fix CSV import: imported theses not visible on public site (is_published defaulted to 0, access_type_id never set) - [x] Fix DB routing: local dev (php -S) auto-uses test.db, production (nginx/fpm) uses posterg.db — no env var needed - [x] migrate.sh auto-initialises DB from schema when absent/empty; existing DBs untouched