aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-db-migration/src/main/java/org/sonar
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2017-08-22 17:33:27 +0200
committerSimon Brandhof <simon.brandhof@sonarsource.com>2017-08-24 11:54:24 +0200
commit71291b751aed27c2b62effcd2852e5e89dd4a9e9 (patch)
treebbfad2d00f38bd09018e39ed5699b9352291e2b6 /server/sonar-db-migration/src/main/java/org/sonar
parent227e8f9108ff18ea7049dfbc57ee2ca4f81b405a (diff)
downloadsonarqube-71291b751aed27c2b62effcd2852e5e89dd4a9e9.tar.gz
sonarqube-71291b751aed27c2b62effcd2852e5e89dd4a9e9.zip
Use VARCHAR2 on Oracle instead of VARCHAR
The type VARCHAR has been badly introduced when implementing the Java DB migration tool. Keeping VARCHAR on some installations should not be a problem. A fix will be done if needed.
Diffstat (limited to 'server/sonar-db-migration/src/main/java/org/sonar')
-rw-r--r--server/sonar-db-migration/src/main/java/org/sonar/server/platform/db/migration/def/VarcharColumnDef.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/sonar-db-migration/src/main/java/org/sonar/server/platform/db/migration/def/VarcharColumnDef.java b/server/sonar-db-migration/src/main/java/org/sonar/server/platform/db/migration/def/VarcharColumnDef.java
index be650c124d8..c882054d5bb 100644
--- a/server/sonar-db-migration/src/main/java/org/sonar/server/platform/db/migration/def/VarcharColumnDef.java
+++ b/server/sonar-db-migration/src/main/java/org/sonar/server/platform/db/migration/def/VarcharColumnDef.java
@@ -66,7 +66,7 @@ public class VarcharColumnDef extends AbstractColumnDef {
case MsSql.ID:
return format("NVARCHAR (%d)", columnSize);
case Oracle.ID:
- return format("VARCHAR (%d%s)", columnSize, ignoreOracleUnit ? "" : " CHAR");
+ return format("VARCHAR2 (%d%s)", columnSize, ignoreOracleUnit ? "" : " CHAR");
default:
return format("VARCHAR (%d)", columnSize);
}