Jon W
Well-known member
- Affected version
- 2.1.0
If a setup file tries to create a new boolean column and that column already exists, it produces the following error:
This happens even if the column is already set to size 3 or 4, but the code is checking whether it is size 1, so it fails.
The code is on line 128-132 of XF/Db/Schema/Column:
It would probably be better to set this to 4.
where xxxxx is the column name.xxxxx already exists in table, but cannot change length
This happens even if the column is already set to size 3 or 4, but the code is checking whether it is size 1, so it fails.
The code is on line 128-132 of XF/Db/Schema/Column:
Code:
case 'BOOL':
case 'BOOLEAN':
$type = 'TINYINT';
$length = 1;
break;
It would probably be better to set this to 4.