PostgreSQL does not support IF NOT EXISTS for CREATE TRIGGER. Use DROP TRIGGER IF EXISTS before CREATE TRIGGER instead. Fixes: Backend crash loop due to schema.sql syntax error on line 231 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>