Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
-- No-op: this migration repairs data and cannot be safely reversed. Rows that
-- were originally unauthenticated are indistinguishable from repaired ones, so
-- there is nothing to restore.
11 changes: 11 additions & 0 deletions migrations/20260729120000_[2.0.3]_fix_smtp_auth_backfill.up.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
-- Repair rows mis-classified by the [2.0.2] smtp_xoauth2 back-fill.
-- That migration set smtp_authentication = 'login' whenever smtp_user and
-- smtp_password were merely NOT NULL, but empty-string credentials (valid and
-- common under 2.0.1, where SMTP authentication was optional) then fail the
-- stricter SmtpSettings::is_configured() check. That in turn makes settings
-- validation reject "gateway disconnect notifications" at startup and aborts
-- the core process. Fall back to 'none' for those rows, restoring 2.0.1 behavior.
UPDATE settings SET smtp_authentication = 'none'
WHERE smtp_authentication = 'login'
AND (smtp_user IS NULL OR smtp_user = ''
OR smtp_password IS NULL OR smtp_password = '');
Loading