]> git.mjollnir.org Git - moodle.git/commitdiff
Just to be sure that value columns type is text.
authorpaca70 <paca70>
Mon, 20 Sep 2004 17:45:33 +0000 (17:45 +0000)
committerpaca70 <paca70>
Mon, 20 Sep 2004 17:45:33 +0000 (17:45 +0000)
Postgres cannot change column types at time change was made.

lib/db/postgres7.php
version.php

index 8065c7c6cb058fdbd7e9f9ab29f8ba2e431063de..6c2fa3a7d1439d865963b662c2dfa039cd9dcfa6 100644 (file)
@@ -598,6 +598,9 @@ function main_upgrade($oldversion=0) {
         execute_sql("CREATE INDEX {$CFG->prefix}user_auth_idx ON {$CFG->prefix}user (auth)"); 
     }
 
+    if ($oldversion < 2004092000) { //redoing this just to be sure that column type is text (postgres type changes didnt work when this was done first time)
+        table_column("config", "value", "value", "text", "", "", "");
+    }
     
     return $result;
 
index c935c4a229a36ce871e59b99b0ce302f0a0a6fd6..2433f968c9ba75bab490e361ada248ffe9663b1e 100644 (file)
@@ -5,7 +5,7 @@
 // database to determine whether upgrades should
 // be performed (see lib/db/*.php)
 
-$version = 2004091900;   // The current version is a date (YYYYMMDDXX)
+$version = 2004092000;   // The current version is a date (YYYYMMDDXX)
 
 $release = "1.5 unstable development";   // User-friendly version number