Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0004763Openbravo ERPY. DBSourceManagerpublic2008-08-29 16:112009-03-18 11:02
marvintm 
marvintm 
normalmajoralways
closedfixed 
5
 
 
Core
No
0004763: Upgrader gives an error when trying to recreate a UNIQUE constraint in Oracle
When a UNIQUE constraint is created in Oracle, an INDEX with the same name is also created.

If the constraint changes, during the update process dbsourcemanager tries to drop it, and create it again. However, the creation is not successfull, because an INDEX with the same name still exists.
Simply create a unique constraint in the database, export the database, change in the xml the constraint (for example, adding more columns to it), and perform the update.database process.
DBsourcemanager will now drop the constraint and its associated index, ensuring that no problems happen when recreating it.
dbsm_migrate
Issue History
2008-08-29 16:11marvintmNew Issue
2008-08-29 16:11marvintmAssigned To => marvintm
2008-08-29 16:12svnbotCheckin
2008-08-29 16:12svnbotNote Added: 0008785
2008-08-29 16:12svnbotStatusnew => resolved
2008-08-29 16:12svnbotResolutionopen => fixed
2008-08-29 16:12svnbotsvn_revision => 117
2008-11-25 23:36psarobeStatusresolved => closed
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
2009-03-18 11:02anonymoussf_bug_id0 => 2691345

Notes
(0008785)
svnbot   
2008-08-29 16:12   
Repository: dbsourcemanager
Revision: 117
Author: marvintm
Date: 2008-08-29 16:12:51 +0200 (Fri, 29 Aug 2008)

Fixed issue 4763. Now dbsourcemanager will drop the associated index when dropping a UNIQUE constraint.

---
U branches/r0.8x/src/org/apache/ddlutils/platform/oracle/Oracle8Builder.java
---

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