Closed jon48 closed 2 years ago
doctrine/dbal
is well known for its inability to modify tables containing ENUM
fields.
So, we either
drop/recreate the table.
modify the code to only store M/F/U
.
However, there is still lots of code that assumes M/F/U
and will fail on X
.
Yes, that is why I did not suggest a PR for that one, as I did not know how you preferred to handle it. I was going to submit a PR for the other display issues, but you have been quicker than me 😃
Commit 1baf69dec287f195fbbefc3bae3c0b33957a89c3 has added a better support to sex X, but it is actually not possible to edit a person and set its sex to X / "Other".
Here is the error I get when trying to save an individual with sex X
Indeed, unless I have missed something, and a DB upgrade has not taken place, the column
i_sex
is still constrained to the ENUMM
,F
,U
, andX
has not been added as an acceptable value.