<?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 update 3.2 to 4.0 tab alf_node col order in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/update-3-2-to-4-0-tab-alf-node-col-order/m-p/31562#M16320</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hallo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am running 3.2 CE and would upgrade to next step (4.0.d).&lt;/P&gt;&lt;P&gt;But after restart tab alf_node has wrong order on columns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Details:&lt;/P&gt;&lt;P&gt;To debug i run following script:&lt;/P&gt;&lt;P&gt;----&lt;/P&gt;&lt;P&gt;while [ 1 -eq 1 ]; do&lt;BR /&gt;date;echo \\\d alf_node| $psql $opt | grep -n _id&lt;BR /&gt;sleep 120;&lt;BR /&gt;done&lt;/P&gt;&lt;P&gt;---&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. After create table alf_node col locale_id not exist:&lt;/P&gt;&lt;P&gt;---&lt;/P&gt;&lt;P&gt;Mon Sep 26 19:13:07 UTC 2016&lt;BR /&gt;3: store_id | bigint | not null&lt;BR /&gt;5: transaction_id | bigint | not null&lt;BR /&gt;7: type_qname_id | bigint | not null&lt;BR /&gt;8: acl_id | bigint |&lt;/P&gt;&lt;P&gt;---&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. After first start alfresco running schema-update. Result:&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;Mon Sep 26 20:25:09 UTC 2016&lt;BR /&gt;3: store_id | bigint | not null&lt;BR /&gt;5: transaction_id | bigint | not null&lt;BR /&gt;7: type_qname_id | bigint | not null&lt;BR /&gt;8: acl_id | bigint | &lt;BR /&gt;14: locale_id | bigint | not null default 1&lt;/P&gt;&lt;P&gt;---&lt;/P&gt;&lt;P&gt;But this is wrong.&lt;/P&gt;&lt;P&gt;According to org.hibernate.dialect.PostgreSQLDialect/AlfrescoCreate-RepoTables.sql&lt;/P&gt;&lt;P&gt;should be:&amp;nbsp; col8=locale_id&lt;/P&gt;&lt;P&gt;----&lt;/P&gt;&lt;P&gt;# more AlfrescoCreate-RepoTables.sql&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;CREATE TABLE alf_node&lt;BR /&gt;(&lt;BR /&gt; id INT8 NOT NULL,&lt;BR /&gt; version INT8 NOT NULL,&lt;BR /&gt; store_id INT8 NOT NULL,&lt;BR /&gt; uuid VARCHAR(36) NOT NULL,&lt;BR /&gt; transaction_id INT8 NOT NULL,&lt;BR /&gt; node_deleted BOOL NOT NULL,&lt;BR /&gt; type_qname_id INT8 NOT NULL,&lt;BR /&gt; locale_id INT8 NOT NULL,&lt;BR /&gt; acl_id INT8,&lt;BR /&gt; audit_creator VARCHAR(255),&lt;BR /&gt; audit_created VARCHAR(30),&lt;BR /&gt; audit_modifier VARCHAR(255),&lt;BR /&gt; audit_modified VARCHAR(30),&lt;BR /&gt; audit_accessed VARCHAR(30),&lt;BR /&gt; PRIMARY KEY (id),&lt;/P&gt;&lt;P&gt;---&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. so i received following error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;---&lt;/P&gt;&lt;P&gt;2016-09-26 17:55:58,056 WARN [domain.schema.SchemaBootstrap] [main] Schema validation found 15 potential problems, results written to: /opt/alfresco-4.0.d/tomcat/temp/Alfresco/Alfresco-PostgreSQLDialect-Validation-Pre-Upgrade-5348831433842333714.txt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# more /opt/alfresco-4.0.d/tomcat/temp/Alfresco/Alfresco-PostgreSQLDialect-Validation-Pre-Upgrade-5348831433842333714.txt | head -5&lt;BR /&gt;Difference: expected column .alf_node.locale_id.order="8", but was .alf_node.locale_id.order="14"&lt;BR /&gt;Difference: expected column .alf_node.acl_id.order="9", but was .alf_node.acl_id.order="8"&lt;BR /&gt;Difference: expected column .alf_node.audit_creator.order="10", but was .alf_node.audit_creator.order="9"&lt;BR /&gt;Difference: expected column .alf_node.audit_created.order="11", but was .alf_node.audit_created.order="10"&lt;BR /&gt;Difference: expected column .alf_node.audit_modifier.order="12", but was .alf_node.audit_modifier.order="11"&lt;/P&gt;&lt;P&gt;---&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whats going wrong?&lt;/P&gt;&lt;P&gt;Howto fix this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards Harry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(der mit dem neuen Portal so seine Probleme hat...)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[1] &lt;A href="https://migration33.stage.lithium.com/docs/DOC-6102"&gt;Alfresco Community 4.0.d Release Notes&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Table 'alf_node': Locale in which node was last edited is recorded. 'locale_id' column added and foreign key referencing 'alf_locale.id'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Sep 2016 20:52:26 GMT</pubDate>
    <dc:creator>halehm</dc:creator>
    <dc:date>2016-09-26T20:52:26Z</dc:date>
    <item>
      <title>update 3.2 to 4.0 tab alf_node col order</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/update-3-2-to-4-0-tab-alf-node-col-order/m-p/31562#M16320</link>
      <description>Hallo,i am running 3.2 CE and would upgrade to next step (4.0.d).But after restart tab alf_node has wrong order on columns.Details:To debug i run following script:----while [ 1 -eq 1 ]; dodate;echo \\\d alf_node| $psql $opt | grep -n _idsleep 120;done---1. After create table alf_node col locale_id n</description>
      <pubDate>Mon, 26 Sep 2016 20:52:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/update-3-2-to-4-0-tab-alf-node-col-order/m-p/31562#M16320</guid>
      <dc:creator>halehm</dc:creator>
      <dc:date>2016-09-26T20:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: update 3.2 to 4.0 tab alf_node col order</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/update-3-2-to-4-0-tab-alf-node-col-order/m-p/31563#M16321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Harry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;some guys came accross a similar problem at the following topic:&lt;/P&gt;&lt;P&gt;&lt;A href="https://migration33.stage.lithium.com/thread/175408"&gt;Upgradation from 3.4d to 4.0d&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope the solution in one of the posts (from "buster") is going to help you as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Levin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2016 07:38:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/update-3-2-to-4-0-tab-alf-node-col-order/m-p/31563#M16321</guid>
      <dc:creator>lulrich</dc:creator>
      <dc:date>2016-09-27T07:38:32Z</dc:date>
    </item>
  </channel>
</rss>

