summaryrefslogtreecommitdiff
path: root/update.php
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-06-09 11:20:16 +0000
committerDries Buytaert <dries@buytaert.net>2009-06-09 11:20:16 +0000
commitd89758d05ad61f972e11492eff5b7bba7706db77 (patch)
tree8f7ef4cda383e4b46a1ab2a251ce3a6594507aa5 /update.php
parent8f2c63ea25db51f2fc80bd5b7cbc2e5ff6acf823 (diff)
downloadbrdo-d89758d05ad61f972e11492eff5b7bba7706db77.tar.gz
brdo-d89758d05ad61f972e11492eff5b7bba7706db77.tar.bz2
- Patch #486090 by catch: fixed upgrade path from Drupal 6 to Drupal 7.
Diffstat (limited to 'update.php')
-rw-r--r--update.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/update.php b/update.php
index 9facd3f51..ac664d49e 100644
--- a/update.php
+++ b/update.php
@@ -653,7 +653,9 @@ function update_fix_d7_requirements() {
variable_set('update_d7_requirements', TRUE);
// Add column for locale context.
- db_add_field($ret, 'locales_source', 'context', array('type' => 'varchar', 'length' => 255, 'not null' => TRUE, 'default' => '', 'description' => 'The context this string applies to.'));
+ if (db_table_exists('locales_source')) {
+ db_add_field($ret, 'locales_source', 'context', array('type' => 'varchar', 'length' => 255, 'not null' => TRUE, 'default' => '', 'description' => 'The context this string applies to.'));
+ }
}
return $ret;