Set default Varchar size to 255, up from 50 (#4983)

This commit is contained in:
Joris Debonnet 2016-09-26 07:31:40 +02:00
parent 99f98e51d0
commit 44e474a687

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);
}