From 6266f909e0c098652582af44ea64f031ea9cdcea Mon Sep 17 00:00:00 2001 From: Novusvetus Date: Thu, 26 Nov 2015 12:15:49 +0100 Subject: [PATCH] API Increased Permission.Code db field to 255 characters --- security/Permission.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)" );