Openbravo Issue Tracking System - Openbravo ERP | ||||||||||||
View Issue Details | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
0009650 | Openbravo ERP | A. Platform | public | 2009-06-26 10:07 | 2009-08-19 00:00 | |||||||
Reporter | joan | |||||||||||
Assigned To | marvintm | |||||||||||
Priority | urgent | Severity | major | Reproducibility | always | |||||||
Status | closed | Resolution | fixed | |||||||||
Platform | OS | 30 | OS Version | Debian Etch | ||||||||
Product Version | 2.40 | |||||||||||
Target Version | Fixed in Version | |||||||||||
Merge Request Status | ||||||||||||
Review Assigned To | ||||||||||||
OBNetwork customer | No | |||||||||||
Web browser | ||||||||||||
Modules | Core | |||||||||||
Support ticket | ||||||||||||
Regression level | ||||||||||||
Regression date | ||||||||||||
Regression introduced in release | ||||||||||||
Regression introduced by commit | ||||||||||||
Triggers an Emergency Pack | No | |||||||||||
Summary | 0009650: Upgrade from 2.40 to 2.50MP1, foreign key changes update problem. | |||||||||||
Description | When you changed in ob.2.40 a foreign key for instance you create an on update cascade in any of the existing foreign-key references when you do the upgrade to 2.50MP1 following the documentation on http://wiki.openbravo.com/wiki/ERP/2.50/Upgrading_From_2.40 [^] and you reach the step ant export.database export.config.script -Dforce=true when it is doing ant export.config.script -Dforce=true after do the ant export.database -Dforce=true It fails throwing Loading model for module. Path: /opt/upgrade/ob250up/modules/org.openbravo.upgrade.template/src-db/database/model [exportconfigscript] org.apache.ddlutils.model.ModelException: There are multiple foreign keys in table AD_MODEL_OBJECT with the name MODELOBJECT_FK_REFERENCE [exportconfigscript] at org.apache.ddlutils.model.Database.initialize(Database.java:786) [exportconfigscript] at org.openbravo.ddlutils.task.DatabaseUtils.readDatabase(DatabaseUtils.java:74) [exportconfigscript] at org.openbravo.ddlutils.task.ExportConfigScript.doExecute(ExportConfigScript.java:106) ... The problem is the foreign key already exists on the database, and there is no update constraint, so it should drop the existing foreign key and add the new one instead of give the error. | |||||||||||
Steps To Reproduce | Install ob240 DROP MODELOBJECT_FK_REFERENCE reference from table AD_MODEL_OBJECT ADD new MODELOBJECT_FK_REFERENCE with a "on update cascade" Try to upgrade from ob240 to ob250 folllowing the wiki http://wiki.openbravo.com/wiki/ERP/2.50/Upgrading_From_2.40 [^] | |||||||||||
Proposed Solution | ||||||||||||
Additional Information | ||||||||||||
Tags | No tags attached. | |||||||||||
Relationships |
| |||||||||||
Attached Files | ||||||||||||
Issue History | ||||||||||||
Date Modified | Username | Field | Change | |||||||||
2009-06-26 10:07 | joan | New Issue | ||||||||||
2009-06-26 10:07 | joan | Assigned To | => rafaroda | |||||||||
2009-06-30 21:44 | iciordia | OBNetwork customer | => No | |||||||||
2009-06-30 21:44 | iciordia | Note Added: 0017702 | ||||||||||
2009-06-30 21:44 | iciordia | Assigned To | rafaroda => marvintm | |||||||||
2009-06-30 21:44 | iciordia | Priority | normal => urgent | |||||||||
2009-07-01 09:35 | joan | Note Added: 0017714 | ||||||||||
2009-07-01 11:11 | iciordia | Severity | critical => major | |||||||||
2009-07-13 13:30 | psarobe | Relationship added | blocks 0009776 | |||||||||
2009-07-20 22:18 | psarobe | Status | new => scheduled | |||||||||
2009-07-20 22:18 | psarobe | fix_in_branch | => pi | |||||||||
2009-07-28 11:14 | hgbot | Checkin | ||||||||||
2009-07-28 11:14 | hgbot | Note Added: 0018648 | ||||||||||
2009-07-28 11:14 | hgbot | Status | scheduled => resolved | |||||||||
2009-07-28 11:14 | hgbot | Resolution | open => fixed | |||||||||
2009-07-28 11:14 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/53b560533be192e152b871dcc8e0da951a78796b [^] | |||||||||
2009-08-18 10:16 | plujan | Status | resolved => closed | |||||||||
2009-08-19 00:00 | anonymous | sf_bug_id | 0 => 2839882 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|