aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-db-migration
diff options
context:
space:
mode:
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);