diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2017-08-22 17:33:27 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2017-08-24 11:54:24 +0200 |
commit | 71291b751aed27c2b62effcd2852e5e89dd4a9e9 (patch) | |
tree | bbfad2d00f38bd09018e39ed5699b9352291e2b6 /server/sonar-db-migration/src/main/java/org/sonar | |
parent | 227e8f9108ff18ea7049dfbc57ee2ca4f81b405a (diff) | |
download | sonarqube-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.java | 2 |
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); } |