Modify ↓
Ticket #272 (closed defect: fixed)
Changing column type results in "no changed found" on SQLite
| Reported by: | daniel@… | Owned by: | andrew |
|---|---|---|---|
| Priority: | major | Milestone: | 0.7 |
| Component: | commands | Version: | 0.6 |
| Keywords: | Cc: |
Description
Changing certain field types in a valid way while using SQLite can generate a ValueError: no changed found exception. How I ran into this was changing a IntegerField to a FloatField. SQLite just treats the column as numeric, so it detects no difference. On Postgres, this migration works correctly.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

That looks to be a bug in the SQLite library - it has to manually do a whole series of things to get an ALTER's effects to actually work.
I'll stick this on the list to be fixed - hopefully our sqlite backend rewrite will fix it.