<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: MySQL modifications (change next node_id) in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/mysql-modifications-change-next-node-id/m-p/217713#M170843</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried looking into adding a new entry to the mysql database, but my sql skills are not that good. So any help i very much appreciated. I tried to:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;INSERT INTO alf_node_properties (node_id,actual_type_n,persisted_type_n,boolean_value,long_value,float_value,double_value,string_value,serializable_value,qname_id,list_index,locale_id) VALUES(20000,6,6,0,0,0,0,0,NULL,935,-1,2);&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;But this gave the error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;ERROR 1452 (23000): Cannot add or update a child row: a foreign key constraint fails (`alfresco/alf_node_properties`, CONSTRAINT `fk_alf_nprop_n` FOREIGN KEY (`node_id`) REFERENCES `alf_node` (`id`))&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;As far as I know this is because the node_id is referring to another table with node_id, but I don't know how to add to multiple tables and how to ensure that I'm adding to the right tables.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also I'm not sure that this is the right way to go, to try and make the next node_id start with 20001. So any suggestion on other ways how to do this is appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;/Emil&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Sep 2010 07:51:04 GMT</pubDate>
    <dc:creator>enemarke</dc:creator>
    <dc:date>2010-09-13T07:51:04Z</dc:date>
    <item>
      <title>MySQL modifications (change next node_id)</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/mysql-modifications-change-next-node-id/m-p/217712#M170842</link>
      <description>Hi,I have set Alfresco up to use the node_id as document id by showing sys:node-dbid.Now I would like to have the node_id start at ie 10000 for a new database, is that possible and which variable should I change in the database?/Emil</description>
      <pubDate>Mon, 06 Sep 2010 11:49:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/mysql-modifications-change-next-node-id/m-p/217712#M170842</guid>
      <dc:creator>enemarke</dc:creator>
      <dc:date>2010-09-06T11:49:50Z</dc:date>
    </item>
    <item>
      <title>Re: MySQL modifications (change next node_id)</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/mysql-modifications-change-next-node-id/m-p/217713#M170843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried looking into adding a new entry to the mysql database, but my sql skills are not that good. So any help i very much appreciated. I tried to:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;INSERT INTO alf_node_properties (node_id,actual_type_n,persisted_type_n,boolean_value,long_value,float_value,double_value,string_value,serializable_value,qname_id,list_index,locale_id) VALUES(20000,6,6,0,0,0,0,0,NULL,935,-1,2);&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;But this gave the error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;ERROR 1452 (23000): Cannot add or update a child row: a foreign key constraint fails (`alfresco/alf_node_properties`, CONSTRAINT `fk_alf_nprop_n` FOREIGN KEY (`node_id`) REFERENCES `alf_node` (`id`))&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;As far as I know this is because the node_id is referring to another table with node_id, but I don't know how to add to multiple tables and how to ensure that I'm adding to the right tables.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also I'm not sure that this is the right way to go, to try and make the next node_id start with 20001. So any suggestion on other ways how to do this is appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;/Emil&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Sep 2010 07:51:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/mysql-modifications-change-next-node-id/m-p/217713#M170843</guid>
      <dc:creator>enemarke</dc:creator>
      <dc:date>2010-09-13T07:51:04Z</dc:date>
    </item>
  </channel>
</rss>

