Merge pull request #6083 from JorisDebonnet/issue-4983

Set default Varchar size to 255, up from 50 (#4983)
This commit is contained in:
Ingo Schommer 2016-09-26 22:29:49 +13:00 committed by GitHub
commit ef966557d8

View File

@ -31,8 +31,8 @@ class DBVarchar extends DBString {
* @param array $options Optional parameters, e.g. array("nullifyEmpty"=>false).
* See {@link StringField::setOptions()} for information on the available options
*/
public function __construct($name = null, $size = 50, $options = array()) {
$this->size = $size ? $size : 50;
public function __construct($name = null, $size = 255, $options = array()) {
$this->size = $size ? $size : 255;
parent::__construct($name, $options);
}