On 12/30/05, Ian Bicking <[EMAIL PROTECTED]> wrote:
> Well, if Python scripts were supported, then it would be relatively easy
> to provide a couple functions specifically for adding and removing
> columns.  Maybe it would look like:
>
>    from myproject import models
>    models.MyTable.sqlmeta.columns['foo'].forceAlterAdd()
>    models.MyTable.sqlmeta.columns['bar'].forceAlterRemove()
>
> SQLObject *can* do alter statements for different databases (with the
> sqlmeta.addColumn() method), but that's not used by sqlobject-admin.

I haven't seen the Rails migrations API in much detail, so I can't
comment on exactly what it looks like. It might be instructive here.

> That covers a useful amount of situations, but there's also many
> situations that require custom SQL to do well.

Definitely true.

Kevin

Reply via email to