summaryrefslogtreecommitdiffstats
path: root/archiva-modules
diff options
context:
space:
mode:
authorMaria Odea B. Ching <oching@apache.org>2011-05-31 11:05:07 +0000
committerMaria Odea B. Ching <oching@apache.org>2011-05-31 11:05:07 +0000
commit3289f9b03b309d235590c3db599f9b995f97c5ac (patch)
tree6022662477c4351e78af77c3071519a09b1a34cc /archiva-modules
parent39ecc7836c581e56d068149103f9573e409619a1 (diff)
downloadarchiva-3289f9b03b309d235590c3db599f9b995f97c5ac.tar.gz
archiva-3289f9b03b309d235590c3db599f9b995f97c5ac.zip
[MRM-1476] 'Specified key was too long' error during startup when using MySQL databases with UTF8 charset
submitted by Greg Michael Meneses o set default string length to 255 in jpox config git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1129622 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules')
-rw-r--r--archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/application.xml5
1 files changed, 5 insertions, 0 deletions
diff --git a/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/application.xml b/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/application.xml
index f8203dff0..f6a1f614a 100644
--- a/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/application.xml
+++ b/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/application.xml
@@ -102,6 +102,11 @@
<name>org.jpox.rdbms.dateTimezone</name>
<value>JDK_DEFAULT_TIMEZONE</value>
</property>
+ <!-- NEEDED FOR MYSQL UTF-8 Databases -->
+ <property>
+ <name>org.jpox.rdbms.stringDefaultLength</name>
+ <value>255</value>
+ </property>
<!-- NEEDED FOR POSTGRES, But causes problems in other JDBC implementations.
<property>
<name>org.jpox.identifier.case</name>