Opened 6 years ago
Closed 6 years ago
#29763 closed Cleanup/optimization (fixed)
Add support for column renames on SQLite3 in schema editor
Reported by: | Markus Holtermann | Owned by: | Hampus Dunström |
---|---|---|---|
Component: | Migrations | Version: | dev |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Starting with version 3.25.0, SQLite3 gained support for ALTER TABLE table RENAME COLUMN oldname TO newname
: https://www.sqlite.org/releaselog/3_25_0.html
The SQLite3 schema editor, used by the migrations framework, however, won't use this new feature yet, but instead will continue to create a new table and copy data over.
This ticket is about evaluating the feasibility of adding RENAME COLUMN
support for column renames on SQLite3 >=3.25 while keeping the "remake table" approach for older versions.
One thing we need to ensure, we _somehow_ need to keep testing the old and new behavior on our CI.
Change History (5)
comment:1 by , 6 years ago
Triage Stage: | Unreviewed → Accepted |
---|---|
Type: | Uncategorized → Cleanup/optimization |
comment:2 by , 6 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:3 by , 6 years ago
comment:4 by , 6 years ago
Has patch: | set |
---|
PR