From: paca70 Date: Mon, 20 Sep 2004 17:45:33 +0000 (+0000) Subject: Just to be sure that value columns type is text. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=5a2432d47b230dde397c70a2be287aac30c31f01;p=moodle.git Just to be sure that value columns type is text. Postgres cannot change column types at time change was made. --- diff --git a/lib/db/postgres7.php b/lib/db/postgres7.php index 8065c7c6cb..6c2fa3a7d1 100644 --- a/lib/db/postgres7.php +++ b/lib/db/postgres7.php @@ -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; diff --git a/version.php b/version.php index c935c4a229..2433f968c9 100644 --- a/version.php +++ b/version.php @@ -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