chore: change the oauth_provider_apps table to uuidV7 (#24792)

This commit is contained in:
非法操作 2025-08-29 17:54:14 +08:00 committed by GitHub
commit 14e7ba4818
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View file

@ -592,7 +592,7 @@ class OAuthProviderApp(Base):
sa.Index("oauth_provider_app_client_id_idx", "client_id"),
)
id = mapped_column(StringUUID, server_default=sa.text("uuid_generate_v4()"))
id = mapped_column(StringUUID, server_default=sa.text("uuidv7()"))
app_icon = mapped_column(String(255), nullable=False)
app_label = mapped_column(sa.JSON, nullable=False, server_default="{}")
client_id = mapped_column(String(255), nullable=False)