aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-db-migration
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-migration
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-migration')
-rw-r--r--server/sonar-db-migration/src/main/java/org/sonar/server/platform/db/migration/version/v81/CreateAlmSettingsTable.java2
-rw-r--r--server/sonar-db-migration/src/test/java/org/sonar/server/platform/db/migration/version/v81/CreateAlmSettingsTableTest.java1
2 files changed, 2 insertions, 1 deletions
diff --git a/server/sonar-db-migration/src/main/java/org/sonar/server/platform/db/migration/version/v81/CreateAlmSettingsTable.java b/server/sonar-db-migration/src/main/java/org/sonar/server/platform/db/migration/version/v81/CreateAlmSettingsTable.java
index abdfd3188eb..5e383dc8104 100644
--- a/server/sonar-db-migration/src/main/java/org/sonar/server/platform/db/migration/version/v81/CreateAlmSettingsTable.java
+++ b/server/sonar-db-migration/src/main/java/org/sonar/server/platform/db/migration/version/v81/CreateAlmSettingsTable.java
@@ -39,7 +39,7 @@ public class CreateAlmSettingsTable extends DdlChange {
private static final VarcharColumnDef KEY = newVarcharColumnDefBuilder()
.setColumnName("kee")
.setIsNullable(false)
- .setLimit(40)
+ .setLimit(200)
.build();
public CreateAlmSettingsTable(Database db) {
diff --git a/server/sonar-db-migration/src/test/java/org/sonar/server/platform/db/migration/version/v81/CreateAlmSettingsTableTest.java b/server/sonar-db-migration/src/test/java/org/sonar/server/platform/db/migration/version/v81/CreateAlmSettingsTableTest.java
index cd9114c28bf..8c0b6d15c71 100644
--- a/server/sonar-db-migration/src/test/java/org/sonar/server/platform/db/migration/version/v81/CreateAlmSettingsTableTest.java
+++ b/server/sonar-db-migration/src/test/java/org/sonar/server/platform/db/migration/version/v81/CreateAlmSettingsTableTest.java
@@ -50,6 +50,7 @@ public class CreateAlmSettingsTableTest {
dbTester.assertUniqueIndex(TABLE_NAME, "uniq_alm_settings", "kee");
dbTester.assertColumnDefinition(TABLE_NAME, "uuid", VARCHAR, 40, false);
+ dbTester.assertColumnDefinition(TABLE_NAME, "kee", VARCHAR, 200, false);
dbTester.assertColumnDefinition(TABLE_NAME, "alm_id", VARCHAR, 40, false);
dbTester.assertColumnDefinition(TABLE_NAME, "url", VARCHAR, 2000, true);
dbTester.assertColumnDefinition(TABLE_NAME, "app_id", VARCHAR, 80, true);