On Aug 3, 2009, at 7:08 PM, Bret Aarden wrote:

>
> I used a Table's drop() method to drop it from the database. In order
> to create a new version of the table, I found I was forced to also
> separately use its MetaData's remove() method to delete the Table. I
> didn't find this documented anywhere. Is this preferred behavior? It
> seems like dropping a Table should automatically remove it from its
> MetaData.
>
> Thanks for any explanation...


preferred is to create a new MetaData since ForeignKey objects that  
link to your table do not get removed from referencing tables.   the  
MetaData wasn't really intended for surgical operations.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to