Sam Joseph wrote:

>John McNally wrote:
>  
>
>>You can order the tables in the xml schema.
>>
>Thanks, and presumably when I use this
>
>#foreach ($dataModel in $dataModels)
>#set ( $database = $dataModel.database )
>#foreach ($tbl in $database.tables)
>
>in one of the database templates, the order of the returned tables will
>reflect that of the schema?
>
So, I just checked this myself and it works, but the problem now is that
the ordering in the schema that allows me to drop all the tables is the
opposite order from the one required to create them all, i.e. mckoi
won't allow me to create foreign keys to tables that don't exist yet.

I can't immediately see any way in Velocity to loop backwards through a
set, but I'll mail to the velocity list and ask.

CHEERS> SAM


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to