Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0005039Openbravo ERPY. DBSourceManagerpublic2008-09-12 13:392009-03-18 11:02
psarobe 
marvintm 
urgentmajoralways
closedfixed 
5
 
 
Core
No
0005039: Upgrader MP4-MP5- Some contrainst missed after the running the upgrader
The problem arises when you import a language in MP4 different than Spanish language and in some trl tables the parent is missed so PostgreSQL remove those contraints.

The cause of the problem is that when a record is removed from AD_ELEMENT, for example, its child it is not removed.

The tables that we have found this are: AD_ELEMEN, AD_PROCESS_PARA, AD_TEXTINTERFACES

For the AD_TEXTINTERFACES table there is a collateral problem due to this. If you add custom code in srcClient just before running the upgrade and this code has new labels, when launching the translate process it will insert in table AD_TEXTINTERFACES new entries but it will crash. SEE ATTACH for this

These are the constraints:

Table AD_ELEMENT_TRL. Referential integrity with its parent (AD_ELEMENT_ID)
Table AD_PROCESS_PARA_TRL. Referential integrity with its parent (AD_PROCESS_PARA_ID)
Table AD_TEXTINTERFACES_TRL. Referential integrity with its parent (AD_TEXTINTERFACES_ID)

http://wiki.openbravo.com/wiki/Upgraders_Testing [^]

dbsm_migrate
log 03build.log (458,934) 2008-09-12 13:39
https://issues.openbravo.com/file_download.php?file_id=251&type=bug
Issue History
2008-09-12 13:39psarobeNew Issue
2008-09-12 13:39psarobeAssigned To => marvintm
2008-09-12 13:39psarobeFile Added: 03build.log
2008-09-12 19:14psarobeStatusnew => scheduled
2008-09-12 19:14psarobefix_in_branch => trunk
2008-09-15 10:42svnbotCheckin
2008-09-15 10:42svnbotNote Added: 0009016
2008-09-15 10:42svnbotStatusscheduled => resolved
2008-09-15 10:42svnbotResolutionopen => fixed
2008-09-15 10:42svnbotsvn_revision => 121
2008-10-07 11:33psarobeStatusresolved => closed
2008-12-18 12:39jpabloaeTag Attached: dbsm_migrate
2008-12-18 12:41jpabloaeProject@4@ => Openbravo ERP
2008-12-18 12:41jpabloaeCategory => Y. DBSourceManager
2009-03-18 11:02anonymoussf_bug_id0 => 2691352

Notes
(0009016)
svnbot   
2008-09-15 10:42   
Repository: dbsourcemanager
Revision: 121
Author: marvintm
Date: 2008-09-15 10:42:44 +0200 (Mon, 15 Sep 2008)

Fixed bug 5039. Now rows that invalidate an ON DELETE CASCADE foreign key will be deleted while updating the database.

---
U branches/r0.7x/src/org/apache/ddlutils/Platform.java
U branches/r0.7x/src/org/apache/ddlutils/platform/PlatformImplBase.java
U branches/r0.7x/src/org/openbravo/ddlutils/task/AlterCustomizedDatabaseData.java
U branches/r0.7x/src/org/openbravo/ddlutils/task/AlterDatabase.java
---

https://dev.openbravo.com/websvn/dbsourcemanager/?rev=121&sc=1 [^]