Migration 4 to 5 error, "core::5.0.0-discard-drafts (up) failed: Original error: id is not defined"
### Node Version

20.19.0

### NPM/Yarn/PNPM Version

NPM 11.2.0

### Strapi Version

5.11.3

### Operating System

Windows 11

### Database

MySQL

### Javascript or Typescript

Javascript

### Reproduction URL

_No response_

### Bug Description

I did an upgrade from an existing v4.25.21 with `npx @strapi/upgrade major`.
I removed (npm uninstall) 2 marketplace-plugins before. Then did the upgrade. Build process workes, but starting or `npx strapi dev` shows the following error:
 
```error: Migration core::5.0.0-discard-drafts (up) failed: Original error: id is not defined
MigrationError: Migration core::5.0.0-discard-drafts (up) failed: Original error: id is not defined
    at D:\strapi\woka-strapiV5-mysql-Test\node_modules\umzug\lib\umzug.js:169:27
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Umzug.runCommand (D:\strapi\V5-mysql-Test\node_modules\umzug\lib\umzug.js:125:20)
    at async Object.up (D:\strapi\V5-mysql-Test\node_modules\@strapi\database\dist\index.js:8199:13)
    at async Object.up (D:\strapi\V5-mysql-Test\node_modules\@strapi\database\dist\index.js:8225:21)
    at async Object.sync (D:\strapi\V5-mysql-Test\node_modules\@strapi\database\dist\index.js:2787:17)
    at async Strapi.bootstrap (D:\strapi\V5-mysql-Test\node_modules\@strapi\core\dist\index.js:9976:24)
    at async Strapi.load (D:\strapi\V5-mysql-Test\node_modules\@strapi\core\dist\index.js:9936:9)
    at async Strapi.start (D:\strapi\V5-mysql-Test\node_modules\@strapi\core\dist\index.js:9824:17)
```

The DB tables seams to be updated. They have the document_id and local fields. What id is meant?

### Steps to Reproduce

upgrade from v4.25.21 to v5.11.3

### Expected Behavior

See strapi started

### Logs

```shell

```

### Code Snippets

_No response_

### Media

_No response_

### Additional information

_No response_

### Confirmation Checklist

- [x] I have checked the existing [issues](https://github.com/strapi/strapi/issues) for duplicates.
- [x] I agree to follow this project's [Code of Conduct](https://github.com/strapi/strapi/blob/develop/CODE_OF_CONDUCT.md).