Return-Path: Delivered-To: apmail-db-ddlutils-dev-archive@www.apache.org Received: (qmail 52697 invoked from network); 13 Jul 2006 06:11:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 13 Jul 2006 06:11:32 -0000 Received: (qmail 64884 invoked by uid 500); 13 Jul 2006 06:11:32 -0000 Delivered-To: apmail-db-ddlutils-dev-archive@db.apache.org Received: (qmail 64857 invoked by uid 500); 13 Jul 2006 06:11:32 -0000 Mailing-List: contact ddlutils-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ddlutils-dev@db.apache.org Delivered-To: mailing list ddlutils-dev@db.apache.org Received: (qmail 64846 invoked by uid 99); 13 Jul 2006 06:11:32 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Jul 2006 23:11:32 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Jul 2006 23:11:31 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 448B2410504 for ; Thu, 13 Jul 2006 06:09:32 +0000 (GMT) Message-ID: <26331007.1152770972278.JavaMail.jira@brutus> Date: Thu, 13 Jul 2006 06:09:32 +0000 (GMT+00:00) From: "Thomas Dudziak (JIRA)" To: ddlutils-dev@db.apache.org Subject: [jira] Updated: (DDLUTILS-75) Add support for "On Delete" and "On Update" in schema XML for foreign keys In-Reply-To: <1513138966.1140577720290.JavaMail.jira@ajax.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/DDLUTILS-75?page=all ] Thomas Dudziak updated DDLUTILS-75: ----------------------------------- Fix Version: 1.1 > Add support for "On Delete" and "On Update" in schema XML for foreign keys > -------------------------------------------------------------------------- > > Key: DDLUTILS-75 > URL: http://issues.apache.org/jira/browse/DDLUTILS-75 > Project: DdlUtils > Type: Improvement > Environment: Oracle 10g Express Edition > Windows XP > Java 1.5.0 > Ant 1.6.5 > Reporter: Guy Davis > Assignee: Thomas Dudziak > Priority: Critical > Fix For: 1.1 > Attachments: delete_cascade.patch > > Currently, when dumping the schema from a live database to XML, the 'on delete' and 'on update' rules for foreign keys are ignored. As shown in the DTD for database.dtd (below), the attributes onDelete and onUpdate should translate into "on delete cascade" for example in the target SQL. > > foreignTable CDATA #REQUIRED > name CDATA #IMPLIED > onUpdate (cascade|setnull|restrict|none) "none" > onDelete (cascade|setnull|restrict|none) "none" > > > > If the dump (DatabaseToDdl) is modified to write these attributes out, then the schema load (DdlToDatabase) needs to handle them and set the correct behavior on the foreign key creation. -- 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