summaryrefslogtreecommitdiff
path: root/modules/locale
diff options
context:
space:
mode:
authorwebchick <webchick@24967.no-reply.drupal.org>2012-09-13 01:08:27 -0700
committerwebchick <webchick@24967.no-reply.drupal.org>2012-09-13 01:08:27 -0700
commit2fc916d3d4c2efd60eb53bfbb117cb3fd6ce7817 (patch)
tree21f1ba1da4c292f2bb0da64af01dd9214ef4d321 /modules/locale
parentc164b0f3383dadc17a197bb3fb60cc9580bfead7 (diff)
downloadbrdo-2fc916d3d4c2efd60eb53bfbb117cb3fd6ce7817.tar.gz
brdo-2fc916d3d4c2efd60eb53bfbb117cb3fd6ce7817.tar.bz2
Issue #1571076 by droplet, yohannbzh: Fixed Plural formula field only accepts 128 characters.
Diffstat (limited to 'modules/locale')
-rw-r--r--modules/locale/locale.install15
1 files changed, 14 insertions, 1 deletions
diff --git a/modules/locale/locale.install b/modules/locale/locale.install
index 2d94c7170..b4db757f1 100644
--- a/modules/locale/locale.install
+++ b/modules/locale/locale.install
@@ -202,6 +202,19 @@ function locale_update_7004() {
}
/**
+ * Increase {locales_languages}.formula column's length.
+ */
+function locale_update_7005() {
+ db_change_field('languages', 'formula', 'formula', array(
+ 'type' => 'varchar',
+ 'length' => 255,
+ 'not null' => TRUE,
+ 'default' => '',
+ 'description' => 'Plural formula in PHP code to evaluate to get plural indexes.',
+ ));
+}
+
+/**
* @} End of "addtogroup updates-7.x-extra".
*/
@@ -303,7 +316,7 @@ function locale_schema() {
),
'formula' => array(
'type' => 'varchar',
- 'length' => 128,
+ 'length' => 255,
'not null' => TRUE,
'default' => '',
'description' => 'Plural formula in PHP code to evaluate to get plural indexes.',