Skip to content
Browse files

moodle16cleanup: lib/db correctly put the default values, change the

length of log_display.module which is just 20 chars on postgres7.sql
  • Loading branch information...
1 parent aec6df3 commit ccd218ee4bdd37dc8b5456282a711e014489e662 martinlanghoff committed May 17, 2006
Showing with 14 additions and 0 deletions.
  1. +14 −0 lib/db/postgres7.php
View
14 lib/db/postgres7.php
@@ -1543,6 +1543,20 @@ function main_upgrade($oldversion=0) {
You weren't using it anyway. ;-)");
}
}
+
+ modify_database('', 'ALTER TABLE prefix_course_request
+ ALTER COLUMN "password" TYPE varchar(50),
+ ALTER COLUMN "password" SET DEFAULT \'\'');
+
+ modify_database('', 'ALTER TABLE prefix_course
+ ALTER COLUMN currency TYPE varchar(3)');
+
+ modify_database('', 'ALTER TABLE prefix_course_categories
+ ALTER COLUMN path SET DEFAULT \'\'');
+
+ modify_database('', 'ALTER TABLE prefix_log_display
+ ALTER COLUMN module TYPE varchar(20)');
+
}

0 comments on commit ccd218e

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