summaryrefslogtreecommitdiff
path: root/database/updates.inc
diff options
context:
space:
mode:
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);