From a38b071b5198a2d86bbe650630ea7a73aaf3806e Mon Sep 17 00:00:00 2001 From: e1himself Date: Fri, 16 Feb 2018 15:31:57 +0200 Subject: [PATCH] Don't limit column name to 5 chars Sometimes culture codes can be longer. Example: `zh_Hant` -- Chinese Traditional. Storage-wise there's no difference between VARCHAR(255) and VARCHAR(5) --- generator/lib/behavior/i18n/I18nBehavior.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generator/lib/behavior/i18n/I18nBehavior.php b/generator/lib/behavior/i18n/I18nBehavior.php index 21adb0a6d..0a18ad4dd 100644 --- a/generator/lib/behavior/i18n/I18nBehavior.php +++ b/generator/lib/behavior/i18n/I18nBehavior.php @@ -128,7 +128,7 @@ protected function addLocaleColumnToI18n() $this->i18nTable->addColumn(array( 'name' => $localeColumnName, 'type' => PropelTypes::VARCHAR, - 'size' => 5, + 'size' => 255, 'default' => $this->getDefaultLocale(), 'primaryKey' => 'true', ));