aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-db-dao
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2019-10-25 10:57:25 +0200
committersonartech <sonartech@sonarsource.com>2019-11-06 10:04:30 +0100
commit6635d689c3912a6e80391881562a5b56e776c909 (patch)
treebed9382273f79356bc4b4341773cf83cd8f40f63 /server/sonar-db-dao
parent2c1855cfa890c5770919c5b517a24a10fed4e742 (diff)
downloadsonarqube-6635d689c3912a6e80391881562a5b56e776c909.tar.gz
sonarqube-6635d689c3912a6e80391881562a5b56e776c909.zip
SONAR-12512 SONAR-12514 SONAR-12515 Increase ALM key from 80 to 200
Diffstat (limited to 'server/sonar-db-dao')
-rw-r--r--server/sonar-db-dao/src/schema/schema-sq.ddl2
-rw-r--r--server/sonar-db-dao/src/testFixtures/java/org/sonar/db/almsettings/AlmSettingsTesting.java6
2 files changed, 4 insertions, 4 deletions
diff --git a/server/sonar-db-dao/src/schema/schema-sq.ddl b/server/sonar-db-dao/src/schema/schema-sq.ddl
index 6ed58ecce37..d1f73082152 100644
--- a/server/sonar-db-dao/src/schema/schema-sq.ddl
+++ b/server/sonar-db-dao/src/schema/schema-sq.ddl
@@ -53,7 +53,7 @@ CREATE INDEX ALM_APP_INSTALLS_EXTERNAL_ID ON ALM_APP_INSTALLS(USER_EXTERNAL_ID);
CREATE TABLE ALM_SETTINGS(
UUID VARCHAR(40) NOT NULL,
ALM_ID VARCHAR(40) NOT NULL,
- KEE VARCHAR(40) NOT NULL,
+ KEE VARCHAR(200) NOT NULL,
URL VARCHAR(2000),
APP_ID VARCHAR(80),
PRIVATE_KEY VARCHAR(2000),
diff --git a/server/sonar-db-dao/src/testFixtures/java/org/sonar/db/almsettings/AlmSettingsTesting.java b/server/sonar-db-dao/src/testFixtures/java/org/sonar/db/almsettings/AlmSettingsTesting.java
index dc5e8f8176f..13513e49bb8 100644
--- a/server/sonar-db-dao/src/testFixtures/java/org/sonar/db/almsettings/AlmSettingsTesting.java
+++ b/server/sonar-db-dao/src/testFixtures/java/org/sonar/db/almsettings/AlmSettingsTesting.java
@@ -30,7 +30,7 @@ public class AlmSettingsTesting {
public static AlmSettingDto newGithubAlmSettingDto() {
return new AlmSettingDto()
- .setKey(randomAlphanumeric(40))
+ .setKey(randomAlphanumeric(200))
.setUrl(randomAlphanumeric(2000))
.setAppId(randomAlphanumeric(80))
.setPrivateKey(randomAlphanumeric(2000))
@@ -39,14 +39,14 @@ public class AlmSettingsTesting {
public static AlmSettingDto newAzureAlmSettingDto() {
return new AlmSettingDto()
- .setKey(randomAlphanumeric(40))
+ .setKey(randomAlphanumeric(200))
.setPersonalAccessToken(randomAlphanumeric(2000))
.setAlm(ALM.AZURE_DEVOPS);
}
public static AlmSettingDto newBitbucketAlmSettingDto() {
return new AlmSettingDto()
- .setKey(randomAlphanumeric(40))
+ .setKey(randomAlphanumeric(200))
.setUrl(randomAlphanumeric(2000))
.setPersonalAccessToken(randomAlphanumeric(2000))
.setAlm(ALM.BITBUCKET);