make mig 196 compatible with older mysql versions

With utf8mb4 a constraint of 255 results in a maximum possible primary key of 1020 bytes which is larger then the maximum 767 bytes in older MySQL versions. Changing the constraint to 191 results in a max. primary key of 764 bytes which will work with those ancient versions and 191 is still enough for this column. The id's in the cron table are text, why we can't use numerical ID's here
This commit is contained in:
HB9HIL
2024-08-13 13:38:20 +02:00
committed by GitHub
parent 2c4d0e79f7
commit 75b86461ea

View File

@@ -11,7 +11,7 @@ class Migration_cron_table extends CI_Migration {
$this->dbforge->add_field(array(
'id' => array(
'type' => 'VARCHAR',
'constraint' => '255',
'constraint' => '191',
'null' => FALSE,
),
'enabled' => array(