Issues

Issue #39 new

add postgresql_using option to alter_column

Mike Bayer
repo owner created an issue

to change the type of a col between two non-convertible types, PG wants an option "USING" for this:

http://www.postgresql.org/docs/8.1/static/sql-altertable.html

that is:

ALTER TABLE images ALTER COLUMN id TYPE INTEGER using id::integer

This is not something I feel like having Alembic guess on and/or look up in a big hard-to-maintain translation table, so for now we can just have it be explicit as needed with postgresql_using.

Comments (5)

  1. Log in to comment