summaryrefslogtreecommitdiff
path: root/modules/locale
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-05-27 19:54:21 +0000
committerDries Buytaert <dries@buytaert.net>2009-05-27 19:54:21 +0000
commit7530088d9154c66214db459b301ac60526320587 (patch)
treeeecbd7a1fc43fca91843fe8251bf8948f943cb35 /modules/locale
parent70875e9dbe2e108d9f718533643d34c3b0708039 (diff)
downloadbrdo-7530088d9154c66214db459b301ac60526320587.tar.gz
brdo-7530088d9154c66214db459b301ac60526320587.tar.bz2
- Patch #221020 by andypost: increase length of field.
Diffstat (limited to 'modules/locale')
-rw-r--r--modules/locale/locale.install16
1 files changed, 12 insertions, 4 deletions
diff --git a/modules/locale/locale.install b/modules/locale/locale.install
index ec8683f42..225c0ff94 100644
--- a/modules/locale/locale.install
+++ b/modules/locale/locale.install
@@ -217,6 +217,15 @@ function locale_update_6005() {
}
/**
+ * Allow longer location.
+ */
+function locale_update_6006() {
+ $ret = array();
+ db_change_field($ret, 'locales_source', 'location', 'location', array('type' => 'text', 'not null' => FALSE));
+ return $ret;
+}
+
+/**
* @} End of "defgroup updates-5.x-to-6.x"
*/
@@ -354,10 +363,9 @@ function locale_schema() {
'description' => 'Unique identifier of this string.',
),
'location' => array(
- 'type' => 'varchar',
- 'length' => 255,
- 'not null' => TRUE,
- 'default' => '',
+ 'type' => 'text',
+ 'not null' => FALSE,
+ 'size' => 'big',
'description' => 'Drupal path in case of online discovered translations or file path in case of imported strings.',
),
'textgroup' => array(