🔄 Database Auto-Migration:
- Add automatic schema update in user preferences API
- Ensures ocr_settings column exists when first accessed
- Uses ADD COLUMN IF NOT EXISTS for safe migration
- Handles case where column might already exist
- No need for separate migration endpoint
This ensures the settings page will work immediately after deployment
without requiring manual database updates.
|
||
|---|---|---|
| .. | ||
| preferences.js | ||