db-ddlutils-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xavier TROUSSICOT (JIRA)" <j...@apache.org>
Subject [jira] Created: (DDLUTILS-26) MySQL drop foreign key
Date Tue, 11 Oct 2005 12:18:06 GMT
MySQL drop foreign key
----------------------

         Key: DDLUTILS-26
         URL: http://issues.apache.org/jira/browse/DDLUTILS-26
     Project: DdlUtils
        Type: Bug
    Reporter: Xavier TROUSSICOT
 Assigned to: Thomas Dudziak 


The writeExternalForeignKeyDropStmt method needs to be overriden in MySqlBuilder class :

    protected void writeExternalForeignKeyDropStmt(Table table, ForeignKey foreignKey) throws
IOException
    {
        writeTableAlterStmt(table);
        print("DROP FOREIGN KEY ");
        printIdentifier(foreignKey.getName() == null ? getConstraintName(null, table, "FK",
getForeignKeyName(foreignKey)) : foreignKey.getName());
        printEndOfStatement();
    }

-- 
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


Mime
View raw message