fix: add missing remote DB migrations and deploy-migrate recipe

Four ALTER TABLE / CREATE TABLE statements were applied locally but never
deployed to the remote production database, causing:

- acces.php → 500: share_links.is_archived missing (ShareLink::listActive/listArchived)
- parametres.php → 500: smtp_settings.notify_email missing (SmtpRelay::getSettings)
- /tfe?id=N → redirect-to-home: thesis_files.sort_order missing (getThesisFiles ORDER BY)
- admin_audit_log table missing (AdminLogger::insertDb, best-effort but noisy)

Adds four pending migrations (008–011) covering all missing schema changes.
Adds 'deploy-migrate' just recipe to run migrations on the remote after deploy.
This commit is contained in:
Pontoporeia
2026-05-04 18:19:26 +02:00
parent ae6d9b86b3
commit 37111eaac4
8 changed files with 47 additions and 1 deletions

View File

@@ -0,0 +1,4 @@
-- Migration 010: add notify_email to smtp_settings
-- Required by SmtpRelay::getSettings() which SELECTs this column.
-- Absence of this column causes a fatal SQL error on parametres.php.
ALTER TABLE smtp_settings ADD COLUMN notify_email TEXT NOT NULL DEFAULT '';