]> git.mjollnir.org Git - moodle.git/commitdiff
Postgresql uses smallint instead of tinyint.
authorpaca70 <paca70>
Mon, 17 May 2004 06:52:06 +0000 (06:52 +0000)
committerpaca70 <paca70>
Mon, 17 May 2004 06:52:06 +0000 (06:52 +0000)
lib/db/postgres7.php

index 1adf113f29ffafa81f0d2f7201c87b2285da2c44..1c5a1e60841009f4482cc9e682233d2b8269f0f1 100644 (file)
@@ -495,7 +495,7 @@ function main_upgrade($oldversion=0) {
     }
     
     if ($oldversion < 2004050400) {     /// add a visible field for events
-        table_column("event", "", "visible", "tinyint", "1", "", "1", "not null", "timeduration");
+        table_column("event", "", "visible", "smallint", "1", "", "1", "not null", "timeduration");
         if ($events = get_records('event')) {
             foreach($events as $event) {
                 if ($moduleid = get_field('modules', 'id', 'name', $event->modulename)) {