From 8bab140a2af1ed58b05db3733627480c58458c20 Mon Sep 17 00:00:00 2001 From: Steven Wittens Date: Sun, 15 Feb 2004 13:45:47 +0000 Subject: [PATCH] - Old PGSQL fix for people updating from way back ;) --- update.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/update.php b/update.php index 467fec2d582..5fe282c24c5 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() {