mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #6083 from JorisDebonnet/issue-4983
Set default Varchar size to 255, up from 50 (#4983)
This commit is contained in:
commit
ef966557d8
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user