Details
-
Improvement
-
Status: Resolved
-
Critical
-
Resolution: Fixed
-
None
-
None
-
Oracle 10g Express Edition
Windows XP
Java 1.5.0
Ant 1.6.5
Description
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.
<!ELEMENT foreign-key (reference+)>
<!ATTLIST foreign-key
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.
Attachments
Attachments
Issue Links
- incorporates
-
DDLUTILS-200 CloneHelper not cloning onDelete and onCascade for ForeignKeys
- Resolved
- is duplicated by
-
DDLUTILS-82 FOREIGN KEY .... ON UPDATE .... ON DELETE ...
- Resolved
- relates to
-
DDLUTILS-82 FOREIGN KEY .... ON UPDATE .... ON DELETE ...
- Resolved