Skip to content

Commit 5bc8b95

Browse files
committed
split xoauth2 migration
1 parent c2c8002 commit 5bc8b95

4 files changed

Lines changed: 6 additions & 4 deletions

migrations/20260601090254_[2.0.2]_smtp_xoauth2.down.sql

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,5 @@ ALTER TABLE settings
33
DROP smtp_oauth_issuer_url,
44
DROP smtp_oauth_client_id,
55
DROP smtp_oauth_client_secret,
6-
DROP smtp_oauth_refresh_token,
7-
DROP smtp_oauth_tenant_id;
6+
DROP smtp_oauth_refresh_token;
87
DROP TYPE smtp_authentication;

migrations/20260601090254_[2.0.2]_smtp_xoauth2.up.sql

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,5 @@ ALTER TABLE settings
88
ADD smtp_oauth_issuer_url text NULL,
99
ADD smtp_oauth_client_id text NULL,
1010
ADD smtp_oauth_client_secret text NULL,
11-
ADD smtp_oauth_refresh_token text NULL,
12-
ADD smtp_oauth_tenant_id text NULL;
11+
ADD smtp_oauth_refresh_token text NULL;
1312
UPDATE settings SET smtp_authentication = 'login' WHERE smtp_user IS NOT NULL AND smtp_password IS NOT NULL;
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
ALTER TABLE settings
2+
DROP COLUMN smtp_oauth_tenant_id;
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
ALTER TABLE settings
2+
ADD COLUMN smtp_oauth_tenant_id text NULL;

0 commit comments

Comments
 (0)