summaryrefslogtreecommitdiff
path: root/update.php
diff options
context:
space:
mode:
authorSteven Wittens <steven@10.no-reply.drupal.org>2004-02-15 13:45:47 +0000
committerSteven Wittens <steven@10.no-reply.drupal.org>2004-02-15 13:45:47 +0000
commit8bab140a2af1ed58b05db3733627480c58458c20 (patch)
tree2997193a6b7d10268fe78ace3b1802b8537d08eb /update.php
parent69a9a4451d8e344e112d13434c77d5d5b0951a14 (diff)
downloadbrdo-8bab140a2af1ed58b05db3733627480c58458c20.tar.gz
brdo-8bab140a2af1ed58b05db3733627480c58458c20.tar.bz2
- Old PGSQL fix for people updating from way back ;)
Diffstat (limited to 'update.php')
-rw-r--r--update.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/update.php b/update.php
index 467fec2d5..5fe282c24 100644
--- a/update.php
+++ b/update.php
@@ -218,7 +218,12 @@ function update_45() {
}
function update_46() {
- update_sql("ALTER TABLE cache ADD created int(11) NOT NULL default '0'");
+ if ($GLOBALS["db_type"] == "pgsql") {
+ update_sql("ALTER TABLE cache ADD created integer");
+ }
+ else {
+ update_sql("ALTER TABLE cache ADD created int(11) NOT NULL default '0'");
+ }
}
function update_47() {