Openbravo Issue Tracking System - Openbravo ERP | |||||||||||||||||||
View Issue Details | |||||||||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||||||||||||
0030016 | Openbravo ERP | Y. DBSourceManager | public | 2015-05-26 15:03 | 2015-06-04 15:44 | ||||||||||||||
Reporter | alostale | ||||||||||||||||||
Assigned To | alostale | ||||||||||||||||||
Priority | immediate | Severity | major | Reproducibility | have not tried | ||||||||||||||
Status | closed | Resolution | fixed | ||||||||||||||||
Platform | OS | 5 | OS Version | ||||||||||||||||
Product Version | |||||||||||||||||||
Target Version | 3.0PR15Q3 | Fixed in Version | 3.0PR15Q3 | ||||||||||||||||
Merge Request Status | |||||||||||||||||||
Review Assigned To | marvintm | ||||||||||||||||||
OBNetwork customer | |||||||||||||||||||
Web browser | |||||||||||||||||||
Modules | Core | ||||||||||||||||||
Support ticket | |||||||||||||||||||
Regression level | Automated tests | ||||||||||||||||||
Regression date | 2015-04-28 | ||||||||||||||||||
Regression introduced in release | pi | ||||||||||||||||||
Regression introduced by commit | https://code.openbravo.com/erp/devel/pi/rev/f8c18a0c0a00d9dc01482bb1ca5b72d2c68c1fe3 [^] | ||||||||||||||||||
Triggers an Emergency Pack | No | ||||||||||||||||||
Summary | 0030016: upgrading from 2.50 to pi some FKs are missing | ||||||||||||||||||
Description | When upgrading from 2.50 to pi, some FKs are missing in the new database. This occurs for the FKs from recreated to non recreated tables in case none of them are in AD and also in case the both tables participating in the FK are recreated depending on the order they are loaded in the model. | ||||||||||||||||||
Steps To Reproduce | Install 2.50: hg clone pi hg up -C 2.50MP24 ant install.source Prepare to upgrade (fix some data): psql -c 'delete from C_BP_CUSTOMER_ACCT where C_BP_CUSTOMER_ACCT_id in ('\''1000020'\'', '\''1000019'\'', '\''1000024'\'', '\''1000022'\'', '\''1000021'\'');' Upgrade ant smartbuild -Dlocal=no Set all modules but template in development: psql -c 'update ad_module set isindevelopment='\''Y'\'' where ad_module_id<>'\''0138E7A89B5E4DC3932462252801FFBC'\'';' Export database and check: ant export.database hg diff src-db/database/model/tables/MA_SEQUENCE_MACHINE.xmldiff -r b9ab1a7d0969 src-db/database/model/tables/MA_SEQUENCE_MACHINE.xml --- a/src-db/database/model/tables/MA_SEQUENCE_MACHINE.xml Thu May 14 15:46:56 2015 +0000 +++ b/src-db/database/model/tables/MA_SEQUENCE_MACHINE.xml Tue May 26 15:01:04 2015 +0200 @@ -48,15 +48,6 @@ <foreign-key foreignTable="AD_CLIENT" name="MA_SEQUENCE_MACHINE_AD_CLIENT"> <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/> </foreign-key> - <foreign-key foreignTable="AD_ORG" name="MA_SEQUENCE_MACHINE_AD_ORG"> - <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/> - </foreign-key> - <foreign-key foreignTable="MA_MACHINE" name="MA_SEQUENCE_MACHINE_MA_MACHINE"> - <reference local="MA_MACHINE_ID" foreign="MA_MACHINE_ID"/> - </foreign-key> - <foreign-key foreignTable="MA_SEQUENCE" name="MA_SEQUENCE_MACHINE_MA_SEQUENC"> - <reference local="MA_SEQUENCE_ID" foreign="MA_SEQUENCE_ID"/> - </foreign-key> <index name="MA_SEQUENCEMACHINE_SEQ_IDX" unique="false"> <index-column name="MA_SEQUENCE_ID"/> </index> | ||||||||||||||||||
Proposed Solution | |||||||||||||||||||
Additional Information | |||||||||||||||||||
Tags | No tags attached. | ||||||||||||||||||
Relationships |
| ||||||||||||||||||
Attached Files | |||||||||||||||||||
Issue History | |||||||||||||||||||
Date Modified | Username | Field | Change | ||||||||||||||||
2015-05-26 15:03 | alostale | New Issue | |||||||||||||||||
2015-05-26 15:03 | alostale | Assigned To | => platform | ||||||||||||||||
2015-05-26 15:03 | alostale | Modules | => Core | ||||||||||||||||
2015-05-26 15:03 | alostale | Regression level | => Automated tests | ||||||||||||||||
2015-05-26 15:03 | alostale | Regression date | => 2015-04-28 | ||||||||||||||||
2015-05-26 15:03 | alostale | Regression introduced in release | => pi | ||||||||||||||||
2015-05-26 15:03 | alostale | Regression introduced by commit | => https://code.openbravo.com/erp/devel/pi/rev/f8c18a0c0a00d9dc01482bb1ca5b72d2c68c1fe3 [^] | ||||||||||||||||
2015-05-26 15:03 | alostale | Triggers an Emergency Pack | => No | ||||||||||||||||
2015-05-26 15:08 | alostale | Relationship added | related to 0029923 | ||||||||||||||||
2015-05-26 15:10 | alostale | Assigned To | platform => alostale | ||||||||||||||||
2015-05-26 15:10 | alostale | Status | new => scheduled | ||||||||||||||||
2015-05-26 15:10 | alostale | Summary | 29923: upgrading from 2.50 to pi some FKs are missing => upgrading from 2.50 to pi some FKs are missing | ||||||||||||||||
2015-05-26 15:10 | alostale | Relationship added | caused by 0029270 | ||||||||||||||||
2015-05-27 14:55 | alostale | Description Updated | bug_revision_view_page.php?rev_id=8674#r8674 | ||||||||||||||||
2015-05-27 15:42 | hgbot | Checkin | |||||||||||||||||
2015-05-27 15:42 | hgbot | Note Added: 0077814 | |||||||||||||||||
2015-05-27 15:42 | hgbot | Status | scheduled => resolved | ||||||||||||||||
2015-05-27 15:42 | hgbot | Resolution | open => fixed | ||||||||||||||||
2015-05-27 15:42 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/f46b56001fbd6e4484652b2cf8c93fed0d6625e3 [^] | ||||||||||||||||
2015-05-27 15:43 | hgbot | Checkin | |||||||||||||||||
2015-05-27 15:43 | hgbot | Note Added: 0077815 | |||||||||||||||||
2015-05-27 15:43 | hgbot | Checkin | |||||||||||||||||
2015-05-27 15:43 | hgbot | Note Added: 0077816 | |||||||||||||||||
2015-05-27 15:43 | hgbot | Checkin | |||||||||||||||||
2015-05-27 15:43 | hgbot | Note Added: 0077817 | |||||||||||||||||
2015-05-27 15:43 | hgbot | Fixed in SCM revision | http://code.openbravo.com/erp/devel/pi/rev/f46b56001fbd6e4484652b2cf8c93fed0d6625e3 [^] => http://code.openbravo.com/erp/devel/dbsm-main/rev/d5d21a543e48b1f3302c207b4d6c172755349245 [^] | ||||||||||||||||
2015-05-27 15:43 | alostale | Review Assigned To | => marvintm | ||||||||||||||||
2015-05-28 01:10 | hudsonbot | Checkin | |||||||||||||||||
2015-05-28 01:10 | hudsonbot | Note Added: 0077843 | |||||||||||||||||
2015-06-04 15:44 | marvintm | Status | resolved => closed | ||||||||||||||||
2015-06-04 15:44 | marvintm | Fixed in Version | => 3.0PR15Q3 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|