Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0006603Openbravo ERPY. DBSourceManagerpublic2008-12-17 11:252009-04-22 00:00
marvintm 
marvintm 
highmajorsometimes
closedfixed 
5
 
 
Core
No
0006603: Update.database removes and adds all the rows in the database
When an update.database is done, all the rows in the database are removed, and all the rows in the xml files are added.

The reason for this is that the rows are not correctly ordered when read from the database, and therefore are always found to be different.
Just do update.database.
The rows will be correctly ordered so that update.database only updates the modified rows.
dbsm_migrate
Issue History
2008-12-17 11:25marvintmNew Issue
2008-12-17 11:31svnbotCheckin
2008-12-17 11:31svnbotNote Added: 0011474
2008-12-17 11:31svnbotStatusnew => resolved
2008-12-17 11:31svnbotResolutionopen => fixed
2008-12-17 11:31svnbotsvn_revision => 11291
2008-12-18 12:38jpabloaeSticky IssueNo => Yes
2008-12-18 12:39jpabloaeSticky IssueYes => No
2008-12-18 12:39jpabloaeTag Attached: dbsm_migrate
2008-12-18 12:41jpabloaeProject@4@ => Openbravo ERP
2008-12-18 12:41jpabloaeCategory => Y. DBSourceManager
2008-12-18 12:43jpabloaeAssigned To => marvintm
2009-04-21 11:07psarobeStatusresolved => closed
2009-04-22 00:00anonymoussf_bug_id0 => 2777920

Notes
(0011474)
svnbot   
2008-12-17 11:31   
Repository: openbravo
Revision: 11291
Author: marvintm
Date: 2008-12-17 11:31:13 +0100 (Wed, 17 Dec 2008)

Fixed issue 6603. Now update.database shouldn't remove and add all the rows in the database.

---
U trunk/src/org/openbravo/service/db/DataSetService.java
U trunk/src-db/database/lib/dbsourcemanager.jar
---

https://dev.openbravo.com/websvn/openbravo/?rev=11291&sc=1 [^]