I think it would be better to
1) create a new table with all required columns
2) copy the data from the old table
3) drop the old table
4) rename the new table to the desired name
As far as I know none of the databases that sqlalchemy-migrate
supports does have a DDL statement to add multiple columns at once.
Therefore it does not make sense to support something like that at
Python level and give the treacherous impression that it will be
faster than using multiple ALTER TABLE statements.
Regards
Jan Dittberner
2011/9/23 pravin battula <pravin....@gmail.com>:
> --
> You received this message because you are subscribed to the Google Groups "migrate-users" group.
> To post to this group, send email to migrat...@googlegroups.com.
> To unsubscribe from this group, send email to migrate-user...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/migrate-users?hl=en.
>
>
--
Jan Dittberner
Software Architect - Debian Developer
seems like PostgreSQL does support this syntax too [1]. SQLite does
not support it [2]. If you would really want to have such support in
sqlalchemy-migrate please file a ticket in our issue tracker [3]
(ideally with a patch and test cases attached :-) )
[1] http://www.postgresql.org/docs/8.2/static/sql-altertable.html
[2] http://sqlite.org/lang_altertable.html
[3] http://code.google.com/p/sqlalchemy-migrate/issues/list
Kind Regards
Jan Dittberner
2011/9/26 pravin battula <pravin....@gmail.com>:
> For more options, visit this group at http://groups.google.com/group/migrate-users?hl=en.