Openbravo Issue Tracking System - Openbravo ERP | ||||||||||||
View Issue Details | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
0037592 | Openbravo ERP | Y. DBSourceManager | public | 2018-01-05 15:26 | 2018-03-02 16:52 | |||||||
Reporter | neil_smith | |||||||||||
Assigned To | platform | |||||||||||
Priority | immediate | Severity | critical | Reproducibility | always | |||||||
Status | closed | Resolution | no change required | |||||||||
Platform | OS | 5 | OS Version | |||||||||
Product Version | 3.0PR17Q2.4 | |||||||||||
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 | 0037592: update.database hangs if one module has a column in a table that's in another module not installed | |||||||||||
Description | Hello, I just recently updated to 3.0MP17Q2.4 When I did the upgrade, everything went well (I went on a new instance and copied all the modules to the new instance). Now, when I try to install a module update, I get the error (log extract pased at the end). This is what I have Module A, B and C In some cases, I need module A, B and C. In some, only A and B. Module A and B create columns in module C (C is dependent on A and B, but not A and B on C). If I only have module A and B installed, I get the error. This did not happen in the previous version we had installed (3.0PR16Q1.3). I can't imagine having to create a module for each dependence between 2 modules... In my example, I would have to create 2 new modules, AC and BC... But that's not all, I also would have to change all the tables, windows, processes... Copy the data from the old column to the new one... Everything that uses those columns... And I have lot more than 3 modules... I'm really stuck, I can't update or do anything now... [java] 110490 INFO - Running modulescripts... [java] 110621 INFO - Executing moduleScript: org.openbravo.modulescript.HBFix [java] 110849 INFO - Executing moduleScript: org.openbravo.modulescript.InitializeCostingMigrationPreference [java] 110916 INFO - Executing moduleScript: org.openbravo.advpaymentmngt.modulescript.InitializeAPRMReadyPreference [java] 110959 INFO - Updating Application Dictionary data... [java] 116275 ERROR - Error while inserting into the database: ERROR: insert or update on table "ad_column" violates foreign key constraint "ad_table_column" [java] Détail : Key (ad_table_id)=(8A8A80F63422305B0134225A5624004C) is not present in table "ad_table". [java] org.postgresql.util.PSQLException: ERROR: insert or update on table "ad_column" violates foreign key constraint "ad_table_column" [java] Détail : Key (ad_table_id)=(8A8A80F63422305B0134225A5624004C) is not present in table "ad_table". | |||||||||||
Steps To Reproduce | 1. Create 2 modules, A and B 2 In module A and B, create a table 3 In module A, create a column in the table in module B (EM_...) | |||||||||||
Proposed Solution | Ignore column creation if table doesn't exist (as before) | |||||||||||
Additional Information | ||||||||||||
Tags | No tags attached. | |||||||||||
Relationships |
| |||||||||||
Attached Files | ||||||||||||
Issue History | ||||||||||||
Date Modified | Username | Field | Change | |||||||||
2018-01-05 15:26 | neil_smith | New Issue | ||||||||||
2018-01-05 15:26 | neil_smith | Assigned To | => platform | |||||||||
2018-01-05 15:26 | neil_smith | Modules | => Core | |||||||||
2018-01-05 15:26 | neil_smith | Triggers an Emergency Pack | => No | |||||||||
2018-01-19 12:07 | alostale | Relationship added | related to 0034061 | |||||||||
2018-01-19 12:11 | alostale | Note Added: 0101782 | ||||||||||
2018-01-19 12:11 | alostale | Status | new => closed | |||||||||
2018-01-19 12:11 | alostale | Resolution | open => no change required | |||||||||
2018-01-19 14:52 | neil_smith | Note Added: 0101802 | ||||||||||
2018-03-02 16:52 | neil_smith | Note Added: 0102941 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|