Update to 28.0.1 broke my NC | SQLSTATE[23000]: Integrity constraint violation

Hello,

i updated my NC installation via occ cli and ran into an SQL Error.

Can anybody help me ?

I have this error:

An exception occurred while executing a query: SQLSTATE[23000]: Integrity constraint violation: 4025 CONSTRAINT oc_cloud_py_api_settings.value failed for nc_.oc_cloud_py_api_settings

Update to Nextcloud 28.0.1 available. (channel: "stable")
Following file will be downloaded automatically: https://download.nextcloud.com/server/releases/nextcloud-28.0.1.zip
Open changelog ↗

Steps that will be executed:
[ ] Check for expected files
[ ] Check for write permissions
[ ] Create backup
[ ] Downloading
[ ] Verify integrity
[ ] Extracting
[ ] Enable maintenance mode
[ ] Replace entry points
[ ] Delete old files
[ ] Move new files in place
[ ] Done

Start update? [y/N] Y

Info: Pressing Ctrl-C will finish the currently running step and then stops the updater.

[✔] Check for expected files
[✔] Check for write permissions
[✔] Create backup
[✔] Downloading
[✔] Verify integrity
[✔] Extracting
[✔] Enable maintenance mode
[✔] Replace entry points
[✔] Delete old files
[✔] Move new files in place
[✔] Done

Update of code successful.

Should the "occ upgrade" command be executed? [Y/n] Y
Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
Setting log level to debug
Repair step: Repair MySQL collation
Repair info: All tables already have the correct collation -> nothing to do
Repair step: Copy data from accounts table when migrating from ownCloud
Repair step: Drop account terms table when migrating from ownCloud
Updating database schema
Updated database
Updating <oauth2> ...
Exception: Database error when running migration 011602Date20230613160650 for app oauth2
An exception occurred while executing a query: SQLSTATE[23000]: Integrity constraint violation: 4025 CONSTRAINT `oc_cloud_py_api_settings.value` failed for `nc_`.`oc_cloud_py_api_settings`
Update failed
Maintenance mode is kept active
Resetting log level

Keep maintenance mode active? [y/N] y
Maintenance mode kept active

Same issue i am facing on my NC 28.0.1. I have done some changes in files and showing integrity issue can i do changes on files. if yes then how i can solve integrity issues.

I have no idea how to fix this. I went back to 27.1.5 via Backup Restore till this issue is adressed and fixed.

Based on the output this isn’t coming from Nextcloud Server, but a third party app: