diff --git a/security/Permission.php b/security/Permission.php index c2c6a9e18..587e3a806 100644 --- a/security/Permission.php +++ b/security/Permission.php @@ -17,7 +17,7 @@ class Permission extends DataObject implements TemplateGlobalProvider { // the (1) after Type specifies the DB default value which is needed for // upgrades from older SilverStripe versions private static $db = array( - "Code" => "Varchar", + "Code" => "Varchar(255)", "Arg" => "Int", "Type" => "Int(1)" );