Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0009454 | Openbravo ERP | Y. DBSourceManager | public | 2009-06-12 12:04 | 2009-06-20 00:00 |
|
Reporter | marvintm | |
Assigned To | marvintm | |
Priority | immediate | Severity | critical | Reproducibility | have not tried |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | 2.50MP2 | Fixed in Version | pi | |
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 | 0009454: Recreation of tables in modules could lead to loss of views in PostgreSQL |
Description | When an update.database is performed in PostgreSQL, sometimes tables are recreated. When this happens, the original table is at some point removed from the database (and later created again), which leads to dependant objects being also removed. Specifically, views are dropped. To fix this, the full update.database recreates all the views at the end of the process.
However, update.database.mod doesn't load the views if they don't belong to a module, and therefore, doesn't recreate them. This means that if some Core views depend on a Core table that is recreated during the installation of a module (which happens, for example, if a module adds columns to C_BPARTNER), those views will be lost. |
Steps To Reproduce | Install module Human Capital Management in PostgreSQL. 20 Core views will be dropped and not recreated. |
Proposed Solution | DBSM needs to take this into account. |
Additional Information | |
Tags | No tags attached. |
Relationships | |
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2009-06-12 12:04 | marvintm | New Issue | |
2009-06-12 12:04 | marvintm | Assigned To | => marvintm |
2009-06-12 12:04 | marvintm | OBNetwork customer | => No |
2009-06-12 12:48 | AinhoaPagola | Issue Monitored: AinhoaPagola | |
2009-06-12 12:53 | hgbot | Checkin | |
2009-06-12 12:53 | hgbot | Note Added: 0017250 | |
2009-06-12 12:53 | hgbot | Status | new => resolved |
2009-06-12 12:53 | hgbot | Resolution | open => fixed |
2009-06-12 12:55 | hgbot | Checkin | |
2009-06-12 12:55 | hgbot | Note Added: 0017251 | |
2009-06-12 12:55 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/37f18c5d10d4954bd35698ac5e10abe26dceeb2e [^] |
2009-06-12 13:50 | AinhoaPagola | Note Added: 0017260 | |
2009-06-19 12:58 | sureshbabu | Status | resolved => closed |
2009-06-19 12:58 | sureshbabu | Note Added: 0017477 | |
2009-06-19 12:58 | sureshbabu | Fixed in Version | => pi |
2009-06-20 00:00 | anonymous | sf_bug_id | 0 => 2809277 |