
| Key: |
ACTIVERECORD_JDBC-16
|
| Type: |
Bug
|
| Status: |
Resolved
|
| Resolution: |
Fixed
|
| Priority: |
Major
|
| Assignee: |
Unassigned
|
| Reporter: |
headius
|
| Votes: |
0
|
| Watchers: |
1
|
|
If you were logged in you would be able to see more operations.
|
|
|
Ran into this trying to follow Radiant setup instructions on sqlite3 here: http://radiantcms.org/download/
I'm not sure this isn't a Rails 2.3 bug, though...
|
Sort Order:
|
SQLite3 doesn't allow you to rename columns via the ALTER TABLE statement. Instead, you have to move the existing table to a temporary table, create a new table with the new column name, and copy the data into the new table.
Tracing activerecord's sqlite rename_column method provides the details:
http://github.com/rails/rails/blob/0a558b36eb3858ceeb926ada1388b0bd41da11f7/activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb#L306-311
activerecord-jdbc's sqlite adapter needs to be updated to do this instead of executing an ALTER TABLE statement.