Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0011406Openbravo ERPY. DBSourceManagerpublic2009-11-18 19:052012-03-02 15:36
rafaroda 
marvintm 
highminoralways
closedfixed 
30Professional Appliance
pi 
3.0MP9 
Core
No
0011406: export.database creates useless model folder and sub-folders
When a modules does not have database artifacts (tables, views, funcitons, ...) export.database creates useless model folder and sub-folders
1) Set a module with no database artifacts as in development, for instance, http://forge.openbravo.com/projects/ordersawaitingdlivery [^]
2) ant export.database

See that in modules folder, inside org.openbravo.reports.ordersawaitingdelivery, database folder has model folder and sub-folders.
dev-platform-quick-wins
Issue History
2009-11-18 19:05rafarodaNew Issue
2009-11-18 19:05rafarodaAssigned To => marvintm
2010-01-19 09:43alostaleStatusnew => scheduled
2010-01-19 09:43alostalefix_in_branch => pi
2010-08-30 15:38rafarodaTag Attached: dev-platform-quick-wins
2012-02-14 11:22hgbotCheckin
2012-02-14 11:22hgbotNote Added: 0045087
2012-02-14 11:22hgbotStatusscheduled => resolved
2012-02-14 11:22hgbotResolutionopen => fixed
2012-02-14 11:22hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/dbsm-main/rev/20f9143f58fca114baec024cdd3645aacc183b46 [^]
2012-02-14 11:26hgbotCheckin
2012-02-14 11:26hgbotNote Added: 0045088
2012-02-14 11:26hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/devel/dbsm-main/rev/20f9143f58fca114baec024cdd3645aacc183b46 [^] => http://code.openbravo.com/erp/devel/pi/rev/34aaf22a4ca0af27f4e13200523828a21b18c891 [^]
2012-02-16 12:28AugustoMauchNote Added: 0045188
2012-02-16 12:28AugustoMauchStatusresolved => closed
2012-02-16 12:28AugustoMauchFixed in Version => 3.0MP9
2012-03-02 15:36hudsonbotCheckin
2012-03-02 15:36hudsonbotNote Added: 0045840

Notes
(0045087)
hgbot   
2012-02-14 11:22   
Repository: erp/devel/dbsm-main
Changeset: 20f9143f58fca114baec024cdd3645aacc183b46
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Tue Feb 14 11:20:46 2012 +0100
URL: http://code.openbravo.com/erp/devel/dbsm-main/rev/20f9143f58fca114baec024cdd3645aacc183b46 [^]

Fixed issue 11406. Model subfolders and the main model folder will not be created if there is no need.

---
M src/org/apache/ddlutils/io/DatabaseIO.java
---
(0045088)
hgbot   
2012-02-14 11:26   
Repository: erp/devel/pi
Changeset: 34aaf22a4ca0af27f4e13200523828a21b18c891
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Tue Feb 14 11:25:09 2012 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/34aaf22a4ca0af27f4e13200523828a21b18c891 [^]

Fixed issue 11406. Model subfolders and the main model folder will not be created if there is no need.

---
M src-db/database/lib/dbsourcemanager.jar
---
(0045188)
AugustoMauch   
2012-02-16 12:28   
Code reviewed and verified.

Test plan:
- Create a new module (e.g. testIssue11406, with java package name org.openbravo.testIssue11406) and execute export.database. The folder modules/org.openbravo.testIssue11406/src-db/database/sourcedata folder should have been created. No more folder should have been created under modules/org.openbravo.testIssue11406
- Add a db-prefix to the module (e.g. IS11406), and create a table in the database (e.g. IS11406_Test). Execute again export.database. Only one new folder should be created: modules/org.openbravo.testIssue11406/src-db/database/model/tables
(0045840)
hudsonbot   
2012-03-02 15:36   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/544d64e0c159 [^]

Maturity status: Test