From a93cf8966592f3999ddec04722cd08b0a1aaad1c Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 30 Apr 2005 18:16:38 +0000 Subject: - Patch #21353 by chx: implemented PHP-mode for blocks. --- database/updates.inc | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'database/updates.inc') diff --git a/database/updates.inc b/database/updates.inc index 6874bd72c..e1e33734e 100644 --- a/database/updates.inc +++ b/database/updates.inc @@ -109,7 +109,8 @@ $sql_updates = array( "2005-04-10" => "update_130", "2005-04-11" => "update_131", "2005-04-14" => "update_132", - "2005-04-24" => "update_133" + "2005-04-24" => "update_133", + "2005-04-30" => "update_134" ); function update_32() { @@ -2425,6 +2426,17 @@ function update_133() { return $ret; } +function update_134() { + if ($GLOBALS['db_type'] == 'mysql') { + $ret[] = update_sql('ALTER TABLE {blocks} DROP types'); + } + else { + // Postgres can only drop columns since 7.4 + #$ret[] = update_sql('ALTER TABLE {blocks} DROP types'); + } + return $ret; +} + function update_sql($sql) { $edit = $_POST["edit"]; $result = db_query($sql); -- cgit v1.2.3