Simplifying the Compare DM DDL scripts

2 views
Skip to first unread message

Jonathan Fuerth

unread,
Feb 1, 2010, 10:59:00 AM2/1/10
to architect-...@googlegroups.com
Hi developers,

Thomas Kellerer brought up an interesting point on the forum about how we could make DDL scripts shorter on databases that support the "DROP [object] CASCADE" syntax.

This sounds like something interesting to explore. My first concern is, what do we do about cross-schema constraints? In the current implementation, which drops all constraints we know about before dropping the table/column they depend on, the script would fail at that point. However, by using CASCADE, we would unknowingly and somewhat silently drop those cross-schema constraints, then fail to recreate them later.

Any ideas about this? Can we find a way to deal with this case, or convince ourselves it's not a big deal?

-Jonathan

Thomas Kellerer

unread,
Feb 5, 2010, 1:57:01 PM2/5/10
to Architect Developers
Hi Jonathan,


> This sounds like something interesting to explore. My first concern is, what
> do we do about cross-schema constraints?

I always felt the that the restriction of the databases to not allow
dropping a table (or column) that is part of a constraint way to
restrictive.
If I want to drop an object then I almost always want to drop
everything related to that.

In a nutshell: I personally wouldn't be concerned about cross schema
constraints because of that.

Regards
Thomas

Reply all
Reply to author
Forward
0 new messages