Openbravo Issue Tracking System - Openbravo ERP | ||||||||||||||||||||||||||
View Issue Details | ||||||||||||||||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||||||||||||||||
0034102 | Openbravo ERP | Y. DBSourceManager | public | 2016-09-27 16:47 | 2017-10-09 12:04 | |||||||||||||||||||||
Reporter | caristu | |||||||||||||||||||||||||
Assigned To | platform | |||||||||||||||||||||||||
Priority | normal | Severity | minor | Reproducibility | always | |||||||||||||||||||||
Status | closed | Resolution | fixed | |||||||||||||||||||||||
Platform | OS | 5 | OS Version | |||||||||||||||||||||||
Product Version | ||||||||||||||||||||||||||
Target Version | Fixed in Version | |||||||||||||||||||||||||
Merge Request Status | ||||||||||||||||||||||||||
Review Assigned To | caristu | |||||||||||||||||||||||||
OBNetwork customer | ||||||||||||||||||||||||||
Web browser | ||||||||||||||||||||||||||
Modules | Core | |||||||||||||||||||||||||
Support ticket | ||||||||||||||||||||||||||
Regression level | ||||||||||||||||||||||||||
Regression date | ||||||||||||||||||||||||||
Regression introduced in release | ||||||||||||||||||||||||||
Regression introduced by commit | ||||||||||||||||||||||||||
Triggers an Emergency Pack | No | |||||||||||||||||||||||||
Summary | 0034102: Update.database and Install.Source tasks should use the same flow to create the database and the db model | |||||||||||||||||||||||||
Description | Update.database and Install.Source tasks should use the same flow to create the database and the db model. Currently there is duplicated code that is handling those tasks separately. This causes that the behavior is different when applying some model changes. For example, currently DB Source Manager supports the exportation of the following changes into a Configuration Script[1]: - Remove Trigger - Column Required - Column Size - Column Data But on install.source task it is only possible to apply these changes: Column Size, Column Data and Remove Check. See[2]. The Remove Check change is supported on install.source since the resolution of issue 0036137, but still it is being handled in a different flow from the update.database task. [1] http://wiki.openbravo.com/wiki/ERP_2.50:Developers_Guide/How_To_Create_a_Configuration_Script [^] [2] https://code.openbravo.com/erp/devel/dbsm-main/file/482384f24ab9/src/org/apache/ddlutils/platform/SqlBuilder.java#l4504 [^] | |||||||||||||||||||||||||
Steps To Reproduce | 1) Create a new Template and place the attached configuration script into the src-db/database folder. Notice that the config script is intended to turn into false the required property of the C_CURRENCY_ID column in the A_AMORTIZATION_TABLE 2) Run install.source. Notice that the C_CURRENCY_ID is still mandatory --> check the database: the change has NOT been applied 3) Run ant update.database. Notice that the C_CURRENCY_ID is not mandatory --> check the database: the change has been applied | |||||||||||||||||||||||||
Proposed Solution | ||||||||||||||||||||||||||
Additional Information | ||||||||||||||||||||||||||
Tags | No tags attached. | |||||||||||||||||||||||||
Relationships |
| |||||||||||||||||||||||||
Attached Files | configScript.xml (188) 2016-09-27 16:47 https://issues.openbravo.com/file_download.php?file_id=9862&type=bug | |||||||||||||||||||||||||
Issue History | ||||||||||||||||||||||||||
Date Modified | Username | Field | Change | |||||||||||||||||||||||
2016-09-27 16:47 | caristu | New Issue | ||||||||||||||||||||||||
2016-09-27 16:47 | caristu | Assigned To | => platform | |||||||||||||||||||||||
2016-09-27 16:47 | caristu | Modules | => Core | |||||||||||||||||||||||
2016-09-27 16:47 | caristu | Triggers an Emergency Pack | => No | |||||||||||||||||||||||
2016-09-27 16:47 | caristu | File Added: configScript.xml | ||||||||||||||||||||||||
2016-09-27 16:49 | caristu | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=13251#r13251 | |||||||||||||||||||||||
2016-09-27 16:49 | caristu | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=13252#r13252 | |||||||||||||||||||||||
2016-09-27 16:50 | caristu | Relationship added | related to 0033417 | |||||||||||||||||||||||
2016-09-29 09:27 | alostale | Status | new => acknowledged | |||||||||||||||||||||||
2016-09-29 16:21 | caristu | Category | A. Platform => Y. DBSourceManager | |||||||||||||||||||||||
2016-09-30 09:28 | alostale | Relationship added | related to 0034131 | |||||||||||||||||||||||
2016-12-01 13:20 | alostale | Priority | high => normal | |||||||||||||||||||||||
2017-06-06 17:43 | inigosanchez | Relationship added | related to 0036137 | |||||||||||||||||||||||
2017-06-08 13:19 | caristu | Type | defect => design defect | |||||||||||||||||||||||
2017-06-08 13:19 | caristu | Summary | Some config script changes are not applied during install.source => Update.database and Install.Source tasks should use the same flow to create the database and the db model | |||||||||||||||||||||||
2017-06-08 13:19 | caristu | Description Updated | bug_revision_view_page.php?rev_id=15312#r15312 | |||||||||||||||||||||||
2017-06-08 20:48 | inigosanchez | Note Added: 0097257 | ||||||||||||||||||||||||
2017-06-08 20:48 | inigosanchez | Description Updated | bug_revision_view_page.php?rev_id=15313#r15313 | |||||||||||||||||||||||
2017-10-09 12:04 | caristu | Status | acknowledged => scheduled | |||||||||||||||||||||||
2017-10-09 12:04 | caristu | Review Assigned To | => caristu | |||||||||||||||||||||||
2017-10-09 12:04 | caristu | Note Added: 0099824 | ||||||||||||||||||||||||
2017-10-09 12:04 | caristu | Status | scheduled => closed | |||||||||||||||||||||||
2017-10-09 12:04 | caristu | Resolution | open => fixed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|