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
3 changes: 1 addition & 2 deletions migrations/20260601090254_[2.0.2]_smtp_xoauth2.down.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,5 @@ ALTER TABLE settings
DROP smtp_oauth_issuer_url,
DROP smtp_oauth_client_id,
DROP smtp_oauth_client_secret,
DROP smtp_oauth_refresh_token,
DROP smtp_oauth_tenant_id;
DROP smtp_oauth_refresh_token;
DROP TYPE smtp_authentication;
3 changes: 1 addition & 2 deletions migrations/20260601090254_[2.0.2]_smtp_xoauth2.up.sql
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,5 @@ ALTER TABLE settings
ADD smtp_oauth_issuer_url text NULL,
ADD smtp_oauth_client_id text NULL,
ADD smtp_oauth_client_secret text NULL,
ADD smtp_oauth_refresh_token text NULL,
ADD smtp_oauth_tenant_id text NULL;
ADD smtp_oauth_refresh_token text NULL;
UPDATE settings SET smtp_authentication = 'login' WHERE smtp_user IS NOT NULL AND smtp_password IS NOT NULL;
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ALTER TABLE settings
DROP COLUMN smtp_oauth_tenant_id;
2 changes: 2 additions & 0 deletions migrations/20260601090255_[2.0.2]_smtp_oauth_tenant_id.up.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ALTER TABLE settings
ADD COLUMN smtp_oauth_tenant_id text NULL;
Loading