mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 02:14:13 +00:00
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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user