]> source.dussan.org Git - archiva.git/commitdiff
[MRM-415]: [MySQL] Specified key was too long; max key length is 765 bytes
authorJoakim Erdfelt <joakime@apache.org>
Sun, 17 Jun 2007 23:25:54 +0000 (23:25 +0000)
committerJoakim Erdfelt <joakime@apache.org>
Sun, 17 Jun 2007 23:25:54 +0000 (23:25 +0000)
Specifying a size for all keys in database.

git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@548135 13f79535-47bb-0310-9956-ffa450edef68

archiva-base/archiva-model/src/main/mdo/archiva-base.xml

index 2bdbaad32cdb8c6e120f84ee19820621e172d563..1ecd6a172c5c8ef2d69430ecbdd5bb4f036e8bfd 100644 (file)
@@ -99,7 +99,8 @@
       <name>ArchivaRepositoryModel</name>
       <version>1.0.0+</version>
       <fields>
-        <field jpox.primary-key="true"
+        <field stash.maxSize="50"
+               jpox.primary-key="true"
                jpox.value-strategy="off">
           <name>id</name>
           <identifier>true</identifier>
             The unique ID for the repository.
           </description>
         </field>
-        <field>
+        <field stash.maxSize="250">
           <name>name</name>
           <identifier>false</identifier>
           <version>1.0.0+</version>
             The Name of the repository.
           </description>
         </field>
-        <field stash.maxsize="256">
+        <field stash.maxSize="250">
           <name>url</name>
           <identifier>false</identifier>
           <version>1.0.0+</version>
             The URL of the repository.
           </description>
         </field>
-        <field>
+        <field stash.maxSize="20">
           <name>creationSource</name>
           <identifier>false</identifier>
           <version>1.0.0+</version>
             (Example: Configuration, POM)
           </description>
         </field>
-        <field>
+        <field stash.maxSize="16">
           <name>layoutName</name>
           <identifier>false</identifier>
           <version>1.0.0+</version>
            Put Java specifics in the ArchivaArtifactJavaDetails object.
            Put .Net specifics in the ArchivaArtifactDotNetDetails object.
          -->
-        <field jpox.primary-key="true"
+        <field stash.maxSize="250"
+               jpox.primary-key="true"
                jpox.value-strategy="off"
                jpox.persistence-modifier="persistent">
           <name>groupId</name>
             The Group ID of the repository content.
           </description>
         </field>
-        <field jpox.primary-key="true"
+        <field stash.maxSize="80"
+               jpox.primary-key="true"
                jpox.value-strategy="off"
                jpox.persistence-modifier="persistent">
           <name>artifactId</name>
             The Artifact ID of the repository content.
           </description>
         </field>
-        <field jpox.primary-key="true"
+        <field stash.maxSize="50"
+               jpox.primary-key="true"
                jpox.value-strategy="off"
                jpox.persistence-modifier="persistent">
           <name>version</name>
             The version of the repository content.
           </description>
         </field>
-        <field jpox.primary-key="true"
+        <field stash.maxSize="50"
+               jpox.primary-key="true"
                jpox.value-strategy="off"
                jpox.persistence-modifier="persistent">
           <name>classifier</name>
             The classifier for this artifact.
           </description>
         </field>
-        <field jpox.primary-key="true"
+        <field stash.maxSize="50"
+               jpox.primary-key="true"
                jpox.value-strategy="off"
                jpox.persistence-modifier="persistent"
                jpox.column="FILE_TYPE">
             The type of artifact.
           </description>
         </field>
-        <field>
+        <field stash.maxSize="50">
           <name>repositoryId</name>
           <identifier>false</identifier>
           <version>1.0.0+</version>
           </description>
           <defaultValue>false</defaultValue>
         </field>
-        <field>
+        <field stash.maxSize="35">
           <name>checksumMD5</name>
           <identifier>false</identifier>
           <version>1.0.0+</version>
             The MD5 checksum for the artifact file.
           </description>
         </field>
-        <field>
+        <field stash.maxSize="45">
           <name>checksumSHA1</name>
           <identifier>false</identifier>
           <version>1.0.0+</version>
             The size of the artifact on disk.
           </description>
         </field>
-        <field>
+        <field stash.maxSize="16">
           <name>platform</name>
           <identifier>false</identifier>
           <version>1.0.0+</version>
       </interfaces>
       <version>1.0.0+</version>
       <fields>
-        <field jpox.primary-key="true"
+        <field stash.maxSize="250"
+               jpox.primary-key="true"
                jpox.value-strategy="off"
                jpox.persistence-modifier="persistent">
           <name>groupId</name>
             The Group ID of the repository content.
           </description>
         </field>
-        <field jpox.primary-key="true"
+        <field stash.maxSize="80"
+               jpox.primary-key="true"
                jpox.value-strategy="off"
                jpox.persistence-modifier="persistent">
           <name>artifactId</name>
             The Artifact ID of the repository content.
           </description>
         </field>
-        <field jpox.primary-key="true"
+        <field stash.maxSize="50"
+               jpox.primary-key="true"
                jpox.value-strategy="off"
                jpox.persistence-modifier="persistent">
           <name>version</name>
             The version of the repository content.
           </description>
         </field>
-        <field jpox.primary-key="true"
+        <field stash.maxSize="50"
+               jpox.primary-key="true"
                jpox.value-strategy="off"
                jpox.persistence-modifier="persistent">
           <name>classifier</name>
             The classifier for this artifact.
           </description>
         </field>
-        <field jpox.primary-key="true"
+        <field stash.maxSize="50"
+               jpox.primary-key="true"
                jpox.value-strategy="off"
                jpox.persistence-modifier="persistent"
                jpox.column="FILE_TYPE">
       <name>ArchivaRepositoryMetadata</name>
       <version>1.0.0+</version>
       <fields>
-        <field jpox.primary-key="true"
+        <field stash.maxSize="250"
+               jpox.primary-key="true"
                jpox.value-strategy="off"
                jpox.persistence-modifier="persistent">
           <name>groupId</name>
             The Group ID of the metadata.
           </description>
         </field>
-        <field jpox.primary-key="true"
+        <field stash.maxSize="80"
+               jpox.primary-key="true"
                jpox.value-strategy="off"
                jpox.persistence-modifier="persistent">
           <name>artifactId</name>
             The Artifact ID of the metadata.
           </description>
         </field>
-        <field jpox.primary-key="true"
+        <field stash.maxSize="50"
+               jpox.primary-key="true"
                jpox.value-strategy="off"
                jpox.persistence-modifier="persistent">
           <name>version</name>
       <description>The Snapshot Version</description>
       <version>1.0.0+</version>
       <fields>
-        <field jpox.column="VERSION_TIMESTAMP">
+        <field stash.maxSize="20"
+               jpox.column="VERSION_TIMESTAMP">
           <name>timestamp</name>
           <type>String</type>
           <identifier>false</identifier>
       <description>A reference to another (unversioned) Project</description>
       <version>1.0.0+</version>
       <fields>
-        <field null-value="default">
+        <field stash.maxSize="250"
+               null-value="default">
           <name>groupId</name>
           <identifier>false</identifier>
           <version>1.0.0+</version>
             The Group ID of the project reference.
           </description>
         </field>
-        <field null-value="default">
+        <field stash.maxSize="80"
+               null-value="default">
           <name>artifactId</name>
           <identifier>false</identifier>
           <version>1.0.0+</version>
       <description>A reference to another Versioned Project</description>
       <version>1.0.0+</version>
       <fields>
-        <field null-value="default">
+        <field stash.maxSize="250"
+               null-value="default">
           <name>groupId</name>
           <identifier>false</identifier>
           <version>1.0.0+</version>
             The Group ID of the repository content.
           </description>
         </field>
-        <field null-value="default">
+        <field stash.maxSize="80"
+               null-value="default">
           <name>artifactId</name>
           <identifier>false</identifier>
           <version>1.0.0+</version>
             The Artifact ID of the repository content.
           </description>
         </field>
-        <field null-value="default">
+        <field stash.maxSize="50"
+               null-value="default">
           <name>version</name>
           <identifier>false</identifier>
           <version>1.0.0+</version>
       <name>ArtifactReference</name>
       <version>1.0.0+</version>
       <fields>
-        <field null-value="default">
+        <field stash.maxSize="250"
+               null-value="default">
           <name>groupId</name>
           <identifier>false</identifier>
           <version>1.0.0+</version>
             The Group ID of the repository content.
           </description>
         </field>
-        <field null-value="default">
+        <field stash.maxSize="80"
+               null-value="default">
           <name>artifactId</name>
           <identifier>false</identifier>
           <version>1.0.0+</version>
             The Artifact ID of the repository content.
           </description>
         </field>
-        <field null-value="default">
+        <field stash.maxSize="50"
+               null-value="default">
           <name>version</name>
           <identifier>false</identifier>
           <version>1.0.0+</version>
             The version of the repository content.
           </description>
         </field>
-        <field null-value="default">
+        <field stash.maxSize="50"
+               null-value="default">
           <name>classifier</name>
           <identifier>false</identifier>
           <version>1.0.0+</version>
             The classifier for this artifact.
           </description>
         </field>
-        <field null-value="default"
+        <field stash.maxSize="50"
+               null-value="default"
                jpox.column="FILE_TYPE">
           <name>type</name>
           <identifier>false</identifier>
       <name>ArchivaProjectModel</name>
       <version>1.0.0+</version>
       <fields>
-        <field jpox.primary-key="true"
+        <field stash.maxSize="250"
+               jpox.primary-key="true"
                jpox.value-strategy="off"
                jpox.persistence-modifier="persistent">
           <name>groupId</name>
             The Group ID of the repository content.
           </description>
         </field>
-        <field jpox.primary-key="true"
+        <field stash.maxSize="80"
+               jpox.primary-key="true"
                jpox.value-strategy="off"
                jpox.persistence-modifier="persistent">
           <name>artifactId</name>
             The Artifact ID of the repository content.
           </description>
         </field>
-        <field jpox.primary-key="true"
+        <field stash.maxSize="50"
+               jpox.primary-key="true"
                jpox.value-strategy="off"
                jpox.persistence-modifier="persistent">
           <name>version</name>
             The timestamp when this model was indexed.
           </description>
         </field>
-        <field stash.maxSize="256">
+        <field stash.maxSize="250">
           <name>url</name>
           <identifier>false</identifier>
           <version>1.0.0+</version>
           <description>The email address to post to this mailing list.</description>
           <type>String</type>
         </field>
-        <field stash.maxsize="256">
+        <field stash.maxSize="250">
           <name>mainArchiveUrl</name>
           <version>1.0.0+</version>
           <description>The url to the archive for this mailing list.</description>
       <description>Specifies the organization that produces this project.</description>
       <version>1.0.0+</version>
       <fields>
-        <field>
+        <field stash.maxSize="250">
           <name>name</name>
           <identifier>true</identifier>
           <version>1.0.0+</version>
           <description><![CDATA[The full name of the organization.]]></description>
           <type>String</type>
         </field>
-        <field stash.maxsize="256">
+        <field stash.maxSize="250">
           <name>url</name>
           <version>1.0.0+</version>
           <description><![CDATA[The URL to the organization's home page.]]></description>
           <type>String</type>
         </field>
-        <field jpox.column="FAVICON_URL">
+        <field stash.maxSize="250"
+               jpox.column="FAVICON_URL">
           <name>favicon</name>
           <version>1.0.0+</version>
           <description><![CDATA[
             The type of license.
           </description>
         </field>
-        <field>
+        <field stash.maxSize="250">
           <name>name</name>
           <version>1.0.0+</version>
           <description><![CDATA[The full legal name of the license.]]></description>
           <type>String</type>
         </field>
-        <field stash.maxsize="256">
+        <field stash.maxSize="250">
           <name>url</name>
           <version>1.0.0+</version>
           <description><![CDATA[The official url for the license text.]]></description>
           <type>String</type>
         </field>
-        <field>
+        <field stash.maxSize="8192">
           <name>comments</name>
           <description>
             Addendum information pertaining to this license.
       </description>
       <version>1.0.0+</version>
       <fields>
-        <field stash.maxsize="256">
+        <field stash.maxSize="250">
           <name>url</name>
           <identifier>true</identifier>
           <version>1.0.0+</version>
       <name>CiManagement</name>
       <version>1.0.0+</version>
       <fields>
-        <field stash.maxsize="256">
+        <field stash.maxSize="250">
           <name>url</name>
           <identifier>true</identifier>
           <version>1.0.0+</version>
             <![CDATA[URL for the continuous integration system used by the project if it has a web interface.]]></description>
           <type>String</type>
         </field>
-        <field jpox.column="SYSTEM_NAME">
+        <field stash.maxSize="50"
+               jpox.column="SYSTEM_NAME">
           <name>system</name>
           <version>1.0.0+</version>
           <description>
           </description>
           <type>boolean</type>
         </field>
-        <field stash.maxsize="256">
+        <field stash.maxSize="250">
           <name>url</name>
           <version>1.0.0+</version>
           <description><![CDATA[The URL for the homepage of the individual.]]></description>
           <description><![CDATA[The organization to which the individual belongs.]]></description>
           <type>String</type>
         </field>
-        <field>
+        <field stash.maxSize="250">
           <name>organizationUrl</name>
           <alias>organisationUrl</alias>
           <version>1.0.0+</version>
       <name>Dependency</name>
       <version>1.0.0+</version>
       <fields>
-        <field>
+        <field stash.maxSize="250">
           <name>groupId</name>
           <version>1.0.0+</version>
           <type>String</type>
             The Group ID of the repository content.
           </description>
         </field>
-        <field>
+        <field stash.maxSize="80">
           <name>artifactId</name>
           <version>1.0.0+</version>
           <type>String</type>
             The Artifact ID of the repository content.
           </description>
         </field>
-        <field>
+        <field stash.maxSize="50">
           <name>version</name>
           <version>1.0.0+</version>
           <type>String</type>
             The version of the repository content.
           </description>
         </field>
-        <field>
+        <field stash.maxSize="50">
           <name>classifier</name>
           <version>1.0.0+</version>
           <type>String</type>
             <code>jdk14</code> and <code>jdk15</code>.
           ]]></description>
         </field>
-        <field jpox.column="DEPENDENCY_TYPE">
+        <field stash.maxSize="50"
+               jpox.column="DEPENDENCY_TYPE">
           <name>type</name>
           <version>1.0.0+</version>
           <type>String</type>
           <type>boolean</type>
           <!-- <defaultValue>false</defaultValue> -->
         </field>
-        <field stash.maxsize="256">
+        <field stash.maxSize="250">
           <name>url</name>
           <version>1.0.0+</version>
           <description><![CDATA[
           </description>
           <type>String</type>
         </field>
-        <field>
+        <field stash.maxSize="250">
           <name>systemPath</name>
           <version>1.0.0+</version>
           <description><![CDATA[
       <name>Exclusion</name>
       <version>1.0.0+</version>
       <fields>
-        <field>
+        <field stash.maxSize="250">
           <name>groupId</name>
           <version>1.0.0+</version>
           <description><![CDATA[The group ID of the project to exclude.]]></description>
           <type>String</type>
           <required>true</required>
         </field>
-        <field>
+        <field stash.maxSize="80">
           <name>artifactId</name>
           <version>1.0.0+</version>
           <description><![CDATA[The artifact ID of the project to exclude.]]></description>
       <name>Scm</name>
       <version>1.0.0+</version>
       <fields>
-        <field stash.maxsize="256" jpox.column="SCM_URL">
+        <field stash.maxSize="250" jpox.column="SCM_URL">
           <name>connection</name>
           <version>1.0.0+</version>
           <description><![CDATA[
           ]]></description>
           <type>String</type>
         </field>
-        <field stash.maxsize="256">
+        <field stash.maxSize="250">
           <name>developerConnection</name>
           <version>1.0.0+</version>
           <description><![CDATA[
           ]]></description>
           <type>String</type>
         </field>
-        <field stash.maxsize="256">
+        <field stash.maxSize="250">
           <name>url</name>
           <version>1.0.0+</version>
           <description>
       <name>ProjectRepository</name>
       <version>1.0.0+</version>
       <fields>
-        <field>
+        <field stash.maxSize="50">
           <name>id</name>
           <version>1.0.0+</version>
           <description><![CDATA[
           ]]></description>
           <type>String</type>
         </field>
-        <field>
+        <field stash.maxSize="250">
           <name>name</name>
           <version>1.0.0+</version>
           <description><![CDATA[
           ]]></description>
           <type>String</type>
         </field>
-        <field stash.maxsize="256">
+        <field stash.maxSize="250">
           <name>url</name>
           <version>1.0.0+</version>
           <description><![CDATA[
           ]]></description>
           <type>String</type>
         </field>
-        <field>
+        <field stash.maxSize="16">
           <name>layout</name>
           <version>1.0.0+</version>
           <description><![CDATA[
       <name>RepositoryProblem</name>
       <version>1.0.0+</version>
       <fields>
-        <field>
+        <field stash.maxSize="50">
           <name>repositoryId</name>
           <version>1.0.0+</version>
           <required>true</required>
             The repository associated with this path and problem.
           </description>
         </field>
-        <field jpox.column="REPO_PATH">
+        <field stash.maxSize="250" 
+               jpox.column="REPO_PATH">
           <name>path</name>
           <version>1.0.0+</version>
           <type>String</type>
             The path into the repository for the problem.
           </description>
         </field>
-        <field>
+        <field stash.maxSize="250">
           <name>groupId</name>
           <version>1.0.0+</version>
           <type>String</type>
             The Group ID of the repository content with the problem.
           </description>
         </field>
-        <field>
+        <field stash.maxSize="80">
           <name>artifactId</name>
           <version>1.0.0+</version>
           <type>String</type>
             The Artifact ID of the repository content with the problem.
           </description>
         </field>
-        <field>
+        <field stash.maxSize="50">
           <name>version</name>
           <version>1.0.0+</version>
           <type>String</type>
             The version of the repository content with the problem.
           </description>
         </field>
-        <field jpox.column="PROBLEM_TYPE">
+        <field stash.maxSize="50"
+               jpox.column="PROBLEM_TYPE">
           <name>type</name>
           <identifier>false</identifier>
           <version>1.0.0+</version>
             The type of health problem.
           </description>
         </field>
-        <field jpox.column="PROBLEM_ORIGIN">
+        <field stash.maxSize="20"
+               jpox.column="PROBLEM_ORIGIN">
           <name>origin</name>
           <identifier>false</identifier>
           <version>1.0.0+</version>
             The origin of the health problem.
           </description>
         </field>
-        <field>
+        <field stash.maxSize="4096">
           <name>message</name>
           <identifier>false</identifier>
           <version>1.0.0+</version>
       <name>RepositoryContentStatistics</name>
       <version>1.0.0+</version>
       <fields>
-        <field>
+        <field stash.maxSize="50">
           <name>repositoryId</name>
           <version>1.0.0+</version>
           <identifier>false</identifier>