Skip to content

Commit 61ef4db

Browse files
authored
fix: update migration version (#2343)
## Summary This migration was added in #2300, however we couldn't merge in time. Now updating the migration version (hence filename) to prevent any possible issues.
1 parent bcd6cd5 commit 61ef4db

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

migrations/20251216000000_add_token_endpoint_auth_method.up.sql renamed to migrations/20260121000000_add_token_endpoint_auth_method.up.sql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
-- Add token_endpoint_auth_method column to oauth_clients table
22
-- Per RFC 7591: "If unspecified or omitted, the default is 'client_secret_basic'"
33
-- For public clients, the default is 'none' since they don't have a client secret
4-
/* auth_migration: 20251216000000 */
4+
/* auth_migration: 20260121000000 */
55
alter table {{ index .Options "Namespace" }}.oauth_clients
66
add column if not exists token_endpoint_auth_method text check (token_endpoint_auth_method in ('client_secret_basic', 'client_secret_post', 'none'));
77

88
-- Set default values for existing clients based on their client_type
9-
/* auth_migration: 20251216000000 */
9+
/* auth_migration: 20260121000000 */
1010
update {{ index .Options "Namespace" }}.oauth_clients
1111
set token_endpoint_auth_method = case
1212
when client_type = 'public' then 'none'
@@ -15,6 +15,6 @@ update {{ index .Options "Namespace" }}.oauth_clients
1515
where token_endpoint_auth_method is null;
1616

1717
-- Now make the column not null
18-
/* auth_migration: 20251216000000 */
18+
/* auth_migration: 20260121000000 */
1919
alter table {{ index .Options "Namespace" }}.oauth_clients
2020
alter column token_endpoint_auth_method set not null;

0 commit comments

Comments
 (0)