- Status: Not a bug
The queries.json file for the 5.0.5 Beta 1 upgrade step contains 3 queries for the same column (1 add + 2 change):
"1": {
"method": "addColumn",
"params": [
"core_custom_badges",
{
"name": "icon_size",
"type": "TINYINT",
"length": null,
"decimals": null,
"values": null,
"allow_null": false,
"default": "1",
"comment": "relative size of the icon",
"unsigned": true,
"auto_increment": false
}
]
},
"2": {
"method": "changeColumn",
"params": [
"core_custom_badges",
"icon_size",
{
"name": "icon_size",
"type": "TINYINT",
"length": null,
"decimals": null,
"values": null,
"allow_null": false,
"default": "3",
"comment": "relative size of the icon",
"unsigned": true,
"auto_increment": false
}
]
},
"3": {
"method": "changeColumn",
"params": [
"core_custom_badges",
"icon_size",
{
"name": "icon_size",
"type": "TINYINT",
"length": null,
"decimals": null,
"values": null,
"allow_null": false,
"default": "3",
"comment": "relative size of the icon",
"unsigned": true,
"auto_increment": false
}
]
},
You can remove queries #2 and #3 (which are the same, btw) and change the first one to have a default 3 value instead of 1:
"1": {
"method": "addColumn",
"params": [
"core_custom_badges",
{
"name": "icon_size",
"type": "TINYINT",
"length": null,
"decimals": null,
"values": null,
"allow_null": false,
"default": "3",
"comment": "relative size of the icon",
"unsigned": true,
"auto_increment": false
}
]
},
Recommended Comments