if youre looking for automated ALTER-style operations, you can take a
look at Migrate:
http://erosson.com/migrate/trac/
personally for a one-time operation id just go into the console and
type an ALTER statement...(or write a script...)
On Jan 7, 2007, at 6:32 AM, remi jolin wrote:
I have defined a class like
class Image(AciveMapper):
class mapping:
__table__ = "image"
id = column(Integer, primary_key=True)
url = column(Unicode(128))
and created the DB according to the model.
I have modified the Image class to add a new column
class Image(AciveMapper):
class mapping:
__table__ = "image"
id = column(Integer, primary_key=True)
url = column(Unicode(128))
mime_type = column(Unicode(32))
I can't find how to update the DB schema without dropping the table
or going through SQL.
Any help ??
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---