db-ddlutils-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hajo Birthelmer (JIRA)" <j...@apache.org>
Subject [jira] Updated: (DDLUTILS-135) mergeWith in Database needs to handle existing tables correctly
Date Thu, 30 Nov 2006 01:24:23 GMT
     [ http://issues.apache.org/jira/browse/DDLUTILS-135?page=all ]

Hajo Birthelmer updated DDLUTILS-135:

    Attachment: DdlUtils-135-patch.txt

The attached patch contains a table-merge logic that allows two tables to be compared for
columns,foreign keys and indexes and adds missing elements to the target. 

> mergeWith in Database needs to handle existing tables correctly
> ---------------------------------------------------------------
>                 Key: DDLUTILS-135
>                 URL: http://issues.apache.org/jira/browse/DDLUTILS-135
>             Project: DdlUtils
>          Issue Type: Bug
>          Components: Core (No specific database)
>    Affects Versions: 1.0
>         Environment: MySQL
>            Reporter: Hajo Birthelmer
>         Assigned To: Thomas Dudziak
>         Attachments: DdlUtils-135-patch.txt
> mergeWith in Database.java throws a ModelException if the target database already contains
a table described in the source (additional) model. 
> The correct behavior would compare the existing table and the new description and add
columns, keys and indexes to the target if necessary (note that for all practical purposes
existing columns/indexes etc. should NOT be removed)

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


View raw message