summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-10-11 11:24:08 +0000
committerDries Buytaert <dries@buytaert.net>2009-10-11 11:24:08 +0000
commit19089633f62f8b9b61e79ccee32850c155f6716e (patch)
treefd3ed17cdcd28c3e70cd7db935c679fe7c5401cd
parent1ed4175dbaa163a0eaf5da4731fabf74397ed7bd (diff)
downloadbrdo-19089633f62f8b9b61e79ccee32850c155f6716e.tar.gz
brdo-19089633f62f8b9b61e79ccee32850c155f6716e.tar.bz2
- Patch #334283 by andypost: fix upgrade path of message contexts for translations.
-rw-r--r--modules/locale/locale.install3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/locale/locale.install b/modules/locale/locale.install
index 7800cc0f8..45f0020fa 100644
--- a/modules/locale/locale.install
+++ b/modules/locale/locale.install
@@ -33,9 +33,10 @@ function locale_install() {
*/
/**
- * Allow longer location.
+ * Add context field and allow longer location.
*/
function locale_update_7000() {
+ db_add_field('locales_source', 'context', array('type' => 'varchar', 'length' => 255, 'not null' => TRUE, 'default' => ''));
db_drop_index('locales_source', 'source');
db_add_index('locales_source', 'source_context', array(array('source', 30), 'context'));
}