Fixed error with default values on older MySQL version

We have removed the default values for the columns completly, as it were only needed on SQLite when adding the column to existing row.
As this was done in an earlier migration, we can now safely remove it.

The MySQL now correctly detects no more changes. SQLite however still generates some wrong migration changes.
This commit is contained in:
Jan Böhmer 2023-04-09 01:17:48 +02:00
parent cc033d5be7
commit fc1d2269d0
7 changed files with 212 additions and 11 deletions

View file

@ -48,7 +48,7 @@ final class PermissionData implements \JsonSerializable
* permission => [
* operation => value,
* ]
* @ORM\Column(type="json", name="data", options={"default": "[]"})
* @ORM\Column(type="json", name="data")
*/
protected ?array $data = [
//$ prefixed entries are used for metadata