<?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: 5.10-&amp;gt;5.12 db schema migration problem in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/5-10-gt-5-12-db-schema-migration-problem/m-p/137341#M96284</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;@pgadecki: so am I understanding you correctly: the create should never have started if the drop didn't succeed? And that is exactly what DOES happen now?&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;What is important is the reason why drop didn't succeed (I'm guessing that it's beceause it was executing a drop sql for 5.12 not for 5.10 on 5.10 schema, correct me if I'm wrong). As long as &lt;/SPAN&gt;&lt;EM&gt;ACT_GE_PROPERTY&lt;/EM&gt;&lt;SPAN&gt; keeps current activiti db &lt;/SPAN&gt;&lt;EM&gt;schema.version&lt;/EM&gt;&lt;SPAN&gt; this value could be used to select proper drop sql file version.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Mar 2013 14:34:48 GMT</pubDate>
    <dc:creator>pgadecki</dc:creator>
    <dc:date>2013-03-20T14:34:48Z</dc:date>
    <item>
      <title>5.10-&gt;5.12 db schema migration problem</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/5-10-gt-5-12-db-schema-migration-problem/m-p/137337#M96280</link>
      <description>It seems that there is a problem when trying to start activiti-engine:5.12 on Oracle database with activiti:5.10 tables and schema update policy set to: ProcessEngineConfigurationImpl.DB_SCHEMA_UPDATE_DROP_CREATEI think that it might try to perform drop for 5.12 and it fails, then while creating tab</description>
      <pubDate>Tue, 19 Mar 2013 15:36:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/5-10-gt-5-12-db-schema-migration-problem/m-p/137337#M96280</guid>
      <dc:creator>pgadecki</dc:creator>
      <dc:date>2013-03-19T15:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: 5.10-&gt;5.12 db schema migration problem</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/5-10-gt-5-12-db-schema-migration-problem/m-p/137338#M96281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Not to hijack your thread, but to add on to it, we get the following going from 5.11 to 5.12:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;org.apache.ibatis.exceptions.PersistenceException:&lt;BR /&gt;### Error updating database.&amp;nbsp; Cause: org.h2.jdbc.JdbcSQLException: Referential integrity constraint violation: "ACT_FK_I&lt;BR /&gt;DL_PROCINST: PUBLIC.ACT_RU_IDENTITYLINK FOREIGN KEY(PROC_INST_ID_) REFERENCES PUBLIC.ACT_RU_EXECUTION(ID_) ('2713')"; SQ&lt;BR /&gt;L statement:&lt;BR /&gt;delete from ACT_RU_EXECUTION where ID_ = ? and REV_ = ? [23503-169]&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.h2.message.DbException.getJdbcSQLException(DbException.java:329)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ….&lt;BR /&gt;### The error may involve org.activiti.engine.impl.persistence.entity.ExecutionEntity.deleteExecution-Inline&lt;BR /&gt;### The error occurred while setting parameters&lt;BR /&gt;### SQL: delete from ACT_RU_EXECUTION where ID_ = ? and REV_ = ?&lt;BR /&gt;### Cause: org.h2.jdbc.JdbcSQLException: Referential integrity constraint violation: "ACT_FK_IDL_PROCINST: PUBLIC.ACT_RU&lt;BR /&gt;_IDENTITYLINK FOREIGN KEY(PROC_INST_ID_) REFERENCES PUBLIC.ACT_RU_EXECUTION(ID_) ('2713')"; SQL statement:&lt;BR /&gt;delete from ACT_RU_EXECUTION where ID_ = ? and REV_ = ? [23503-169]&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.h2.message.DbException.getJdbcSQLException(DbException.java:329)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ….&lt;BR /&gt;Caused by: org.h2.jdbc.JdbcSQLException: Referential integrity constraint violation: "ACT_FK_IDL_PROCINST: PUBLIC.ACT_RU&lt;BR /&gt;_IDENTITYLINK FOREIGN KEY(PROC_INST_ID_) REFERENCES PUBLIC.ACT_RU_EXECUTION(ID_) ('2713')"; SQL statement:&lt;BR /&gt;delete from ACT_RU_EXECUTION where ID_ = ? and REV_ = ? [23503-169]&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.h2.message.DbException.getJdbcSQLException(DbException.java:329)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ….&lt;BR /&gt;Exception in thread "Thread-3" org.apache.ibatis.exceptions.PersistenceException:&lt;BR /&gt;### Error updating database.&amp;nbsp; Cause: org.h2.jdbc.JdbcSQLException: Referential integrity constraint violation: "ACT_FK_I&lt;BR /&gt;DL_PROCINST: PUBLIC.ACT_RU_IDENTITYLINK FOREIGN KEY(PROC_INST_ID_) REFERENCES PUBLIC.ACT_RU_EXECUTION(ID_) ('2713')"; SQ&lt;BR /&gt;L statement:&lt;BR /&gt;delete from ACT_RU_EXECUTION where ID_ = ? and REV_ = ? [23503-169]&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.h2.message.DbException.getJdbcSQLException(DbException.java:329)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ….&lt;BR /&gt;### The error may involve org.activiti.engine.impl.persistence.entity.ExecutionEntity.deleteExecution-Inline&lt;BR /&gt;### The error occurred while setting parameters&lt;BR /&gt;### SQL: delete from ACT_RU_EXECUTION where ID_ = ? and REV_ = ?&lt;BR /&gt;### Cause: org.h2.jdbc.JdbcSQLException: Referential integrity constraint violation: "ACT_FK_IDL_PROCINST: PUBLIC.ACT_RU&lt;BR /&gt;_IDENTITYLINK FOREIGN KEY(PROC_INST_ID_) REFERENCES PUBLIC.ACT_RU_EXECUTION(ID_) ('2713')"; SQL statement:&lt;BR /&gt;delete from ACT_RU_EXECUTION where ID_ = ? and REV_ = ? [23503-169]&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.h2.message.DbException.getJdbcSQLException(DbException.java:329)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; …&lt;BR /&gt;Caused by: org.h2.jdbc.JdbcSQLException: Referential integrity constraint violation: "ACT_FK_IDL_PROCINST: PUBLIC.ACT_RU&lt;BR /&gt;_IDENTITYLINK FOREIGN KEY(PROC_INST_ID_) REFERENCES PUBLIC.ACT_RU_EXECUTION(ID_) ('2713')"; SQL statement:&lt;BR /&gt;delete from ACT_RU_EXECUTION where ID_ = ? and REV_ = ? [23503-169]&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.h2.message.DbException.getJdbcSQLException(DbException.java:329)&lt;BR /&gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;Not too big of a deal for us, we can just wipe the DB and start over, we are still in development mode. but FYI.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Mar 2013 19:51:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/5-10-gt-5-12-db-schema-migration-problem/m-p/137338#M96281</guid>
      <dc:creator>groopk</dc:creator>
      <dc:date>2013-03-19T19:51:34Z</dc:date>
    </item>
    <item>
      <title>Re: 5.10-&gt;5.12 db schema migration problem</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/5-10-gt-5-12-db-schema-migration-problem/m-p/137339#M96282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Not too big of a deal for us, we can just wipe the DB and start over, we are still in development mode. but FYI.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Yeah, same story here, but it's still a problem.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Mar 2013 08:45:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/5-10-gt-5-12-db-schema-migration-problem/m-p/137339#M96282</guid>
      <dc:creator>pgadecki</dc:creator>
      <dc:date>2013-03-20T08:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: 5.10-&gt;5.12 db schema migration problem</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/5-10-gt-5-12-db-schema-migration-problem/m-p/137340#M96283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;@pgadecki: so am I understanding you correctly: the create should never have started if the drop didn't succeed? And that is exactly what DOES happen now?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;@ groopk: when do you see this error? Do you have a simple test case that can demonstrate the problem?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Mar 2013 10:12:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/5-10-gt-5-12-db-schema-migration-problem/m-p/137340#M96283</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2013-03-20T10:12:05Z</dc:date>
    </item>
    <item>
      <title>Re: 5.10-&gt;5.12 db schema migration problem</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/5-10-gt-5-12-db-schema-migration-problem/m-p/137341#M96284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;@pgadecki: so am I understanding you correctly: the create should never have started if the drop didn't succeed? And that is exactly what DOES happen now?&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;What is important is the reason why drop didn't succeed (I'm guessing that it's beceause it was executing a drop sql for 5.12 not for 5.10 on 5.10 schema, correct me if I'm wrong). As long as &lt;/SPAN&gt;&lt;EM&gt;ACT_GE_PROPERTY&lt;/EM&gt;&lt;SPAN&gt; keeps current activiti db &lt;/SPAN&gt;&lt;EM&gt;schema.version&lt;/EM&gt;&lt;SPAN&gt; this value could be used to select proper drop sql file version.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Mar 2013 14:34:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/5-10-gt-5-12-db-schema-migration-problem/m-p/137341#M96284</guid>
      <dc:creator>pgadecki</dc:creator>
      <dc:date>2013-03-20T14:34:48Z</dc:date>
    </item>
    <item>
      <title>Re: 5.10-&gt;5.12 db schema migration problem</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/5-10-gt-5-12-db-schema-migration-problem/m-p/137342#M96285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That's a valid point.&amp;nbsp; However, most database don't offer transactions for DDL (which would simplify things ENORMOUSLY), and you can't be sure what has been dropped/created. So resetteing the version would also be kinda wrong, as you are probably somewhere 'in between' versions.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Mar 2013 11:19:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/5-10-gt-5-12-db-schema-migration-problem/m-p/137342#M96285</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2013-03-21T11:19:50Z</dc:date>
    </item>
  </channel>
</rss>

