aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-db-migration
diff options
context:
space:
mode:
authorDuarte Meneses <duarte.meneses@sonarsource.com>2017-08-28 15:47:30 +0200
committerJulien HENRY <julien.henry@sonarsource.com>2017-09-07 08:33:31 +0200
commitdb9ce02d06f81e31e108c2e0a4679b3c97c2013b (patch)
tree8c414cb06acbe9e3127c3bba00e2946b9fa3479f /server/sonar-db-migration
parent0d4d37faf7a8c7e1c252c24c286d830802cfbb7b (diff)
downloadsonarqube-db9ce02d06f81e31e108c2e0a4679b3c97c2013b.tar.gz
sonarqube-db9ce02d06f81e31e108c2e0a4679b3c97c2013b.zip
SONAR-9664 Apply feedback
Diffstat (limited to 'server/sonar-db-migration')
-rw-r--r--server/sonar-db-migration/src/main/java/org/sonar/server/platform/db/migration/version/v66/CreateTablePlugins.java2
-rw-r--r--server/sonar-db-migration/src/test/java/org/sonar/server/platform/db/migration/version/v66/CreateTablePluginsTest.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/server/sonar-db-migration/src/main/java/org/sonar/server/platform/db/migration/version/v66/CreateTablePlugins.java b/server/sonar-db-migration/src/main/java/org/sonar/server/platform/db/migration/version/v66/CreateTablePlugins.java
index 9b28fa45fd7..4c36d3ddf71 100644
--- a/server/sonar-db-migration/src/main/java/org/sonar/server/platform/db/migration/version/v66/CreateTablePlugins.java
+++ b/server/sonar-db-migration/src/main/java/org/sonar/server/platform/db/migration/version/v66/CreateTablePlugins.java
@@ -56,7 +56,7 @@ public class CreateTablePlugins extends DdlChange {
.setIsNullable(true)
.build())
.addColumn(newVarcharColumnDefBuilder()
- .setColumnName("hash")
+ .setColumnName("file_hash")
.setLimit(200)
.setIsNullable(false)
.build())
diff --git a/server/sonar-db-migration/src/test/java/org/sonar/server/platform/db/migration/version/v66/CreateTablePluginsTest.java b/server/sonar-db-migration/src/test/java/org/sonar/server/platform/db/migration/version/v66/CreateTablePluginsTest.java
index 91f3f4b92f6..f4b14a5f944 100644
--- a/server/sonar-db-migration/src/test/java/org/sonar/server/platform/db/migration/version/v66/CreateTablePluginsTest.java
+++ b/server/sonar-db-migration/src/test/java/org/sonar/server/platform/db/migration/version/v66/CreateTablePluginsTest.java
@@ -49,7 +49,7 @@ public class CreateTablePluginsTest {
db.assertPrimaryKey(TABLE, "pk_plugins", "uuid");
db.assertColumnDefinition(TABLE, "kee", Types.VARCHAR, 200, false);
db.assertColumnDefinition(TABLE, "base_plugin_key", Types.VARCHAR, 200, true);
- db.assertColumnDefinition(TABLE, "hash", Types.VARCHAR, 200, false);
+ db.assertColumnDefinition(TABLE, "file_hash", Types.VARCHAR, 200, false);
db.assertColumnDefinition(TABLE, "created_at", Types.BIGINT, null, false);
db.assertColumnDefinition(TABLE, "updated_at", Types.BIGINT, null, false);