]> source.dussan.org Git - archiva.git/commitdiff
[MRM-1476] 'Specified key was too long' error during startup when using MySQL databas...
authorMaria Odea B. Ching <oching@apache.org>
Tue, 31 May 2011 11:05:07 +0000 (11:05 +0000)
committerMaria Odea B. Ching <oching@apache.org>
Tue, 31 May 2011 11:05:07 +0000 (11:05 +0000)
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

archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/application.xml

index f8203dff002c0f997cd935db377c35bb41e0a8fb..f6a1f614ab3d4b634b0f6dd9c019a768ab6a99a6 100644 (file)
             <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>