Migrated issue, originally created by Wichert Akkerman ()
SQLite does not support renaming a column directly, so you need a magic dance: create a new column, copy the right data to it and then remove the old column, taking care to only add constraints after copying the data.
该提问来源于开源项目:sqlalchemy/alembic