diff options
author | Julien Lancelot <julien.lancelot@sonarsource.com> | 2018-10-09 15:43:17 +0200 |
---|---|---|
committer | SonarTech <sonartech@sonarsource.com> | 2018-10-10 13:10:51 +0200 |
commit | 1c042dd1f4d5efecdf509e412af10d07453a4329 (patch) | |
tree | dcc3cacef4ffb8792bafaeb599b5294f3a76ac0e /server/sonar-db-dao | |
parent | e6bb0c9a13e5c477c5402ca476d1a8b8eb159cf3 (diff) | |
download | sonarqube-1c042dd1f4d5efecdf509e412af10d07453a4329.tar.gz sonarqube-1c042dd1f4d5efecdf509e412af10d07453a4329.zip |
SONAR-11302 Decrease ORGANIZATIONS#KEE from 300 to 255
As personal organizations are created from login, it was decided to increase the org key size to a round number (300) higher than the login size (255).
Unfortunately, MySQL doesn't support to use more than 255 characters in a unique index.
Diffstat (limited to 'server/sonar-db-dao')
-rw-r--r-- | server/sonar-db-dao/src/main/java/org/sonar/db/organization/OrganizationDto.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/sonar-db-dao/src/main/java/org/sonar/db/organization/OrganizationDto.java b/server/sonar-db-dao/src/main/java/org/sonar/db/organization/OrganizationDto.java index 3ae32fae970..d8a40ea81fc 100644 --- a/server/sonar-db-dao/src/main/java/org/sonar/db/organization/OrganizationDto.java +++ b/server/sonar-db-dao/src/main/java/org/sonar/db/organization/OrganizationDto.java @@ -53,7 +53,7 @@ public class OrganizationDto { * - When {@link UserIdentity#getLogin()} is not null, it's a slug of the login * - When {@link UserIdentity#getLogin()} is null, it's a slug of the name appended to a random number * - * Length is set to 300 (As login length is 255, the size must be higher than 255). + * Length is set to 255 (As login length is 255, the size must be at least 255). */ private String key; |