<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>rampage table index error</title> 
  <pubDate>Mon, 06 Apr 2026 23:10:28 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/7971</link> 
  <atom:link rel="self" type="application/rss+xml" title="rampage table index error" href="https://bugs.horde.org/ticket/7971/rss" /> 
  <description>rampage table index error</description> 
 
   
   
  <item> 
   <title>the bug related with #7948



after we created the tables th</title> 
   <description>the bug related with #7948



after we created the tables the 7948 errors gone away.



but when i add the 2. event to the calendar i recive the following error:

Fatal error: Uncaught exception &#039;Horde_Db_Exception&#039; with message &#039;QUERY FAILED: Duplicate entry &#039;2&#039; for key 2 INSERT INTO `rampage_objects` (object_name, type_id) VALUES (&#039;20090209234236.14139w80iit4xxss@195.70.38.187&#039;, 2)&#039; in /usr/share/php/Horde/Db/Adapter/Mysqli.php:299 Stack trace: #0 /usr/share/php/Horde/Db/Adapter/Mysqli.php(324): Horde_Db_Adapter_Mysqli-&gt;execute(&#039;INSERT INTO `ra...&#039;, NULL, NULL) #1 /usr/share/horde/content/lib/Objects/Manager.php(122): Horde_Db_Adapter_Mysqli-&gt;insert(&#039;INSERT INTO `ra...&#039;) #2 /usr/share/horde/content/lib/Tagger.php(703): Content_Objects_Manager-&gt;ensureObjects(&#039;20090209234236....&#039;, 2) #3 /usr/share/horde/content/lib/Tagger.php(186): Content_Tagger-&gt;_ensureObject(Array) #4 /usr/share/horde/kronolith/lib/Tagger.php(122): Content_Tagger-&gt;removeTagFromObject(Array, Array) #5 /usr/share/horde/kronolith/lib/Tagger.php(160): Kronolith_Tagger-&gt;untag(&#039;20090209234236....&#039;, Array, &#039;event&#039;) #6 /usr/share/horde/kronolith/lib/Driver/sql.php(516): Kronolith_Tagger-&gt;replaceTags(&#039;20090209234236.... in /usr/share/php/Horde/Db/Adapter/Mysqli.php on line 299



the xml part abut this index:

   &lt;index&gt;

    &lt;name&gt;rampage_objects_type_object_name&lt;/name&gt;

    &lt;unique&gt;true&lt;/unique&gt;

    &lt;field&gt;

     &lt;name&gt;type_id&lt;/name&gt;

     &lt;sorting&gt;ascending&lt;/sorting&gt;

    &lt;/field&gt;

    &lt;field&gt;

     &lt;name&gt;object_name&lt;/name&gt;

     &lt;sorting&gt;ascending&lt;/sorting&gt;

    &lt;/field&gt;

   &lt;/index&gt;



our solution is simply:

drop the unique index and it&#039;s work perfectly.</description> 
   <pubDate>Mon, 09 Feb 2009 23:27:19 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7971#t52426</link> 
  </item> 
   
  <item> 
   <title>Please pick the correct version.</title> 
   <description>Please pick the correct version.</description> 
   <pubDate>Mon, 09 Feb 2009 23:31:31 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7971#t52428</link> 
  </item> 
   
  <item> 
   <title>&gt; Please pick the correct version.

sorry. my mistake. that&#039;</title> 
   <description>&gt; Please pick the correct version.

sorry. my mistake. that&#039;s end of the list, and i do not notice. i will keep my eyes on that!</description> 
   <pubDate>Mon, 09 Feb 2009 23:40:15 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7971#t52429</link> 
  </item> 
   
  <item> 
   <title>Can you please try this with a fresh set of rampage tables a</title> 
   <description>Can you please try this with a fresh set of rampage tables and post the *exact* steps that you took to produce this error?



If I understand your error correctly, after you removed the &#039;unique&#039; flag and ran it again, you have two entries for the same event in the rampage_objects table (two entries where object_name and type_id are equal)? Not really sure how that would happen as the object_name is a UID...</description> 
   <pubDate>Tue, 10 Feb 2009 00:19:21 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7971#t52432</link> 
  </item> 
   
  <item> 
   <title>the type id is the same:

+-----------+---------------------</title> 
   <description>the type id is the same:

+-----------+-----------------------------------------------+---------+

| object_id | object_name                                   | type_id |

+-----------+-----------------------------------------------+---------+

|         1 | 20090209224113.11603rqwzfxp9iih@myip |       2 |

|         2 | 20090209234236.14139w80iit4xxss@myip |       2 |

+-----------+-----------------------------------------------+---------+



I simply drop the index:

alter table rampage_objects drop index rampage_objects_type_object_name;



the creation method was not very professional :)

i create the SQL command by hand form the xml becasue this looked like the fastest way for me.



CREATE TABLE `rampage_objects` (

  `object_id` int(10) unsigned NOT NULL auto_increment,

  `object_name` varchar(255) NOT NULL,

  `type_id` int(10) unsigned NOT NULL,

  PRIMARY KEY  (`object_id`),

  UNIQUE KEY `rampage_objects_type_object_name` (`type_id`)

) ENGINE=MyISAM DEFAULT CHARSET=utf8;

</description> 
   <pubDate>Tue, 10 Feb 2009 00:34:03 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7971#t52434</link> 
  </item> 
   
  <item> 
   <title>*sigh*



That is NOT the correct SQL statement.</title> 
   <description>*sigh*



That is NOT the correct SQL statement.</description> 
   <pubDate>Tue, 10 Feb 2009 00:38:38 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7971#t52435</link> 
  </item> 
   
  <item> 
   <title>&gt; *sigh*

&gt;

&gt; That is NOT the correct SQL statement.



And</title> 
   <description>&gt; *sigh*

&gt;

&gt; That is NOT the correct SQL statement.



And which one is incorrect? The SQL part of us, or the xml file?

Wouldn&#039;t be more simple an sql script like upgrade and install scripts?</description> 
   <pubDate>Tue, 10 Feb 2009 22:22:26 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7971#t52477</link> 
  </item> 
   
  <item> 
   <title>&gt; And which one is incorrect? The SQL part of us, or the xml</title> 
   <description>&gt; And which one is incorrect? The SQL part of us, or the xml file?



What is incorrect is your interpretation of the XML schema file.  You turned a two column unique index into a single column unique index.



&gt; Wouldn&#039;t be more simple an sql script like upgrade and install scripts?



No, it wouldn&#039;t.



You should use the scripts located in framework/admintools to create the tables from the schema files.  If you need further assistance, please ask on the appropriate mailing list.</description> 
   <pubDate>Wed, 11 Feb 2009 01:53:59 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7971#t52478</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
