Skip to content
Browse files

Fixing one recently added DB upgrade. Please be careful on STABLE! ;-)

  • Loading branch information...
1 parent 96ef5c7 commit 4f1c93d6dca2f59ed5e0a14e7bcbf12b0b653a18 stronk7 committed Jul 18, 2006
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/db/mysql.php
View
6 lib/db/mysql.php
@@ -1979,9 +1979,9 @@ function main_upgrade($oldversion=0) {
}
// Change in MySQL 5.0.3 concerning how decimals are stored
- if ($oldversion < 2006070300) {
- execute_sql("ALTER TABLE `{$CFG->prefix}grade_letter MODIFY `grade_high` DECIMAL(5,2)", FALSE);
- execute_sql("ALTER TABLE `{$CFG->prefix}grade_letter MODIFY `grade_low` DECIMAL(5,2)", FALSE);
+ if ($oldversion < 2006050507) {
+ table_column('grade_letter', 'grade_high', 'grade_high', 'decimal(5,2)', '', '', '100.00', 'not null', '');
+ table_column('grade_letter', 'grade_low', 'grade_low', 'decimal(5,2)', '', '', '0.00', 'not null', '');
}
return $result;

0 comments on commit 4f1c93d

Please sign in to comment.
Something went wrong with that request. Please try again.