summaryrefslogtreecommitdiff
path: root/database/updates.inc
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2005-04-30 18:16:38 +0000
committerDries Buytaert <dries@buytaert.net>2005-04-30 18:16:38 +0000
commita93cf8966592f3999ddec04722cd08b0a1aaad1c (patch)
tree0f8e85f349c68a139f115ce9fe260ccfa40b59a2 /database/updates.inc
parenta10eac3291d14ae9437e8f34229b1fde599e8f64 (diff)
downloadbrdo-a93cf8966592f3999ddec04722cd08b0a1aaad1c.tar.gz
brdo-a93cf8966592f3999ddec04722cd08b0a1aaad1c.tar.bz2
- Patch #21353 by chx: implemented PHP-mode for blocks.
Diffstat (limited to 'database/updates.inc')
-rw-r--r--database/updates.inc14
1 files changed, 13 insertions, 1 deletions
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);