Closed fibis closed 8 hours ago
Minimum steps to reproduce
Upgrade from 3x to 4x
Sadly, not enough the reproduce the issue.
Please, provide a docker-compose-based environment where this can be reproduced consistently and I'll reopen.
This issue is related to the upgrade to doctrine 3 and relations don't have to correct type. For example, the api key id has the type bigint
but api_key_id
in api_key_roles
is still numeric
. This is throwing the error. To migrate successfully, you need to update the columns manually to bigint
.
Since you already seem to know the root cause, I'm happy to review a pull request 🙂
Also, would you mind adding some link/s which explain what made you come to this conclusion?
Closing until this becomes a priority for someone.
Shlink version
3.7.4
PHP version
4.0.3
How do you serve Shlink
Docker image
Database engine
PostgreSQL
Database version
16
Current behavior
Migration is not successful and throws error:
Expected behavior
Succesfull migrate
Minimum steps to reproduce
Upgrade from 3x to 4x