Unverified Commit 6f46db3f authored by Progi1984's avatar Progi1984 Committed by GitHub
Browse files

Merge pull request #27162 from rickygzz/rickygzz-patch-State-length

Increase maximum country state name length from 32 to 80 characters
parents 3845665a fad90976
......@@ -54,7 +54,7 @@ class StateCore extends ObjectModel
'id_country' => ['type' => self::TYPE_INT, 'validate' => 'isUnsignedId', 'required' => true],
'id_zone' => ['type' => self::TYPE_INT, 'validate' => 'isUnsignedId', 'required' => true],
'iso_code' => ['type' => self::TYPE_STRING, 'validate' => 'isStateIsoCode', 'required' => true, 'size' => 7],
'name' => ['type' => self::TYPE_STRING, 'validate' => 'isGenericName', 'required' => true, 'size' => 32],
'name' => ['type' => self::TYPE_STRING, 'validate' => 'isGenericName', 'required' => true, 'size' => 80],
'active' => ['type' => self::TYPE_BOOL, 'validate' => 'isBool'],
],
];
......
......@@ -153,7 +153,7 @@ class AdminStatesControllerCore extends AdminController
'type' => 'text',
'label' => $this->trans('Name', [], 'Admin.Global'),
'name' => 'name',
'maxlength' => 32,
'maxlength' => 80,
'required' => true,
'hint' => $this->trans('Provide the state name to be displayed in addresses and on invoices.', [], 'Admin.International.Help'),
],
......
......@@ -2049,7 +2049,7 @@ CREATE TABLE `PREFIX_state` (
`id_state` int(10) unsigned NOT NULL auto_increment,
`id_country` int(11) unsigned NOT NULL,
`id_zone` int(11) unsigned NOT NULL,
`name` varchar(64) NOT NULL,
`name` varchar(80) NOT NULL,
`iso_code` varchar(7) NOT NULL,
`tax_behavior` smallint(1) NOT NULL DEFAULT '0',
`active` tinyint(1) NOT NULL DEFAULT '0',
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment