mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 01:25:55 +02:00
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:
parent
cc033d5be7
commit
fc1d2269d0
7 changed files with 212 additions and 11 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue