[Modeling-cvs] ProjectModeling/Modeling SchemaGeneration.py,1.8,1.9
Status: Abandoned
Brought to you by:
sbigaret
From: <sbi...@us...> - 2003-12-17 15:15:36
|
Update of /cvsroot/modeling/ProjectModeling/Modeling In directory sc8-pr-cvs1:/tmp/cvs-serv31692/Modeling Modified Files: SchemaGeneration.py Log Message: Fixed bug #861048: Invalid FK constraints in generated DB schema Index: SchemaGeneration.py =================================================================== RCS file: /cvsroot/modeling/ProjectModeling/Modeling/SchemaGeneration.py,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** SchemaGeneration.py 14 Mar 2003 11:40:10 -0000 1.8 --- SchemaGeneration.py 17 Dec 2003 15:15:33 -0000 1.9 *************** *** 383,386 **** --- 383,388 ---- - its source and destinationEntity share the same model + - the destinationEntity has no sub-entity. + If any of these conditions is not fulfilled the method returns an empty sequence. *************** *** 410,413 **** --- 412,418 ---- dstEntity=relationship.destinationEntity() if srcEntity.model() != dstEntity.model(): + return () + + if dstEntity.subEntities(): return () |