From 2fc916d3d4c2efd60eb53bfbb117cb3fd6ce7817 Mon Sep 17 00:00:00 2001 From: webchick Date: Thu, 13 Sep 2012 01:08:27 -0700 Subject: Issue #1571076 by droplet, yohannbzh: Fixed Plural formula field only accepts 128 characters. --- modules/locale/locale.install | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'modules') 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 @@ -201,6 +201,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.', -- cgit v1.2.3