Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0008835 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Openbravo ERP] Y. DBSourceManager | critical | have not tried | 2009-04-29 16:03 | 2009-05-10 00:00 | |||
Reporter | marvintm | View Status | public | |||||
Assigned To | marvintm | |||||||
Priority | urgent | Resolution | fixed | Fixed in Version | 2.50MP1 | |||
Status | closed | Fix in branch | Fixed in SCM revision | f031afa35943 | ||||
Projection | none | ETA | none | Target Version | pi | |||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
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 | 0008835: If a module adds a column to a table which belongs to another module (or Core), it fails when applying the module | |||||||
Description | If a module adds a column to a table which belongs to another module (or Core), it fails when applying the module, because it tries to insert the whole table without taking into consideration the old table, instead of the usual table recreation process (which consists in creating an auxiliary table, moving the data to it, dropping the old table, creating the new table, and moving the data contained in the auxiliary table to the new one). | |||||||
Tags | 250MP1, Modularity | |||||||
Attached Files | ||||||||
![]() |
|
![]() |
|
(0015943) marvintm (viewer) 2009-04-29 18:27 |
There is an additional consequence of this bug: if you manage (somehow) to install a module which adds a column to another module (or Core), and you try to uninstall it, not just the column, but the whole table will be deleted. |
(0015944) hgbot (developer) 2009-04-29 18:29 |
Repository: dbsourcemanager Revision: 306 Author: marvintm Date: 2009-04-29 18:29:40 +0200 (Wed, 29 Apr 2009) Fixed issue 8835. Partial model loading will now take into account if a module adds an object to a table that is not owned by it. This should mean that modules that add columns to tables owned by other modules or Core can now be installed correctly, and when uninstalled, the whole table will not be removed from the database. --- U trunk/src/org/apache/ddlutils/Platform.java U trunk/src/org/apache/ddlutils/platform/ModelLoader.java U trunk/src/org/apache/ddlutils/platform/ModelLoaderBase.java U trunk/src/org/apache/ddlutils/platform/PlatformImplBase.java U trunk/src/org/openbravo/ddlutils/task/AlterDatabaseDataMod.java --- https://dev.openbravo.com/websvn/dbsourcemanager/?rev=306&sc=1 [^] |
(0015945) hgbot (developer) 2009-04-29 18:31 |
Repository: erp/devel/pi Changeset: f031afa359432173791f824e8bc001cccc68a2ff Author: Antonio Moreno <antonio.moreno <at> openbravo.com> Date: Wed Apr 29 18:30:54 2009 +0200 URL: http://code.openbravo.com/erp/devel/pi/rev/f031afa359432173791f824e8bc001cccc68a2ff [^] Fixed issue 8835. Partial model loading will now take into account if a module adds an object to a table that is not owned by it. This should mean that modules that add columns to tables owned by other modules or Core can now be installed correctly, and when uninstalled, the whole table will not be removed from the database. --- M src-db/database/lib/dbsourcemanager.jar --- |
(0016199) psarobe (viewer) 2009-05-09 17:55 |
Tested |
![]() |
|||
Date Modified | Username | Field | Change |
2009-04-29 16:03 | marvintm | New Issue | |
2009-04-29 16:03 | marvintm | Assigned To | => marvintm |
2009-04-29 16:03 | marvintm | OBNetwork customer | => No |
2009-04-29 16:03 | marvintm | Regression testing | => No |
2009-04-29 16:03 | marvintm | Tag Attached: 250MP1 | |
2009-04-29 16:03 | marvintm | Tag Attached: Modularity | |
2009-04-29 17:47 | psarobe | Priority | normal => urgent |
2009-04-29 17:47 | psarobe | Status | new => scheduled |
2009-04-29 18:27 | marvintm | Note Added: 0015943 | |
2009-04-29 18:29 | hgbot | Checkin | |
2009-04-29 18:29 | hgbot | Note Added: 0015944 | |
2009-04-29 18:29 | hgbot | Status | scheduled => resolved |
2009-04-29 18:29 | hgbot | Resolution | open => fixed |
2009-04-29 18:31 | hgbot | Checkin | |
2009-04-29 18:31 | hgbot | Note Added: 0015945 | |
2009-04-29 18:31 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/f031afa359432173791f824e8bc001cccc68a2ff [^] |
2009-05-09 17:55 | psarobe | Status | resolved => closed |
2009-05-09 17:55 | psarobe | Note Added: 0016199 | |
2009-05-10 00:00 | anonymous | sf_bug_id | 0 => 2789548 |
Copyright © 2000 - 2009 MantisBT Group |