Merge pull request #2841 from int2001/mig_fix_compatbility

Fix SQL so it is compatible with old mysql-versions
This commit is contained in:
Peter Goodhall 2023-12-15 16:14:55 +00:00 committed by GitHub
commit 29236fabb2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,7 +15,7 @@ class Migration_award_submitted_typo extends CI_Migration {
$this->db->query(
'ALTER TABLE ' .
$this->db->escape_identifiers($this->config->item('table_name')) .
' RENAME COLUMN COL_AWARD_SUMMITED TO COL_AWARD_SUBMITTED'
' CHANGE COL_AWARD_SUMMITED COL_AWARD_SUBMITTED VARCHAR(255)'
);
}
@ -24,7 +24,7 @@ class Migration_award_submitted_typo extends CI_Migration {
$this->db->query(
'ALTER TABLE ' .
$this->db->escape_identifiers($this->config->item('table_name')) .
' RENAME COLUMN COL_AWARD_SUBMITTED TO COL_AWARD_SUMMITED'
' CHANGE COL_AWARD_SUBMITTED COL_AWARD_SUMMITED VARCHAR(255)'
);
}
}