mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Set default Varchar size to 255, up from 50 (#4983)
This commit is contained in:
parent
99f98e51d0
commit
44e474a687
@ -31,8 +31,8 @@ class DBVarchar extends DBString {
|
|||||||
* @param array $options Optional parameters, e.g. array("nullifyEmpty"=>false).
|
* @param array $options Optional parameters, e.g. array("nullifyEmpty"=>false).
|
||||||
* See {@link StringField::setOptions()} for information on the available options
|
* See {@link StringField::setOptions()} for information on the available options
|
||||||
*/
|
*/
|
||||||
public function __construct($name = null, $size = 50, $options = array()) {
|
public function __construct($name = null, $size = 255, $options = array()) {
|
||||||
$this->size = $size ? $size : 50;
|
$this->size = $size ? $size : 255;
|
||||||
parent::__construct($name, $options);
|
parent::__construct($name, $options);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user