Opened 9 years ago
Last modified 8 years ago
#11872 closed enhancement
DatabaseManager should support adding and removing table columns — at Version 5
Reported by: | Ryan J Ollos | Owned by: | Ryan J Ollos |
---|---|---|---|
Priority: | normal | Milestone: | 1.2 |
Component: | database backend | Version: | |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: |
Added method to |
||
Internal Changes: |
Description
The DatabaseManager
class has methods to create and drop tables (#11512). It would be useful to have a method to add a column to a table.
Change History (5)
comment:2 by , 9 years ago
Summary: | DatabaseManager should support adding a column to a table → DatabaseManager should support adding and removing table columns |
---|
comment:3 by , 9 years ago
Milestone: | next-dev-1.1.x → next-dev-1.3.x |
---|
Narrowing focus for milestone:1.2. Please move ticket to milestone:1.2 if you intend to fix it.
comment:4 by , 8 years ago
Milestone: | next-dev-1.3.x → 1.2 |
---|---|
Owner: | set to |
Status: | new → assigned |
Note:
See TracTickets
for help on using tickets.
A
drop_column
method could be useful as well. One use-case in #9612.The approach to adding columns has been to create a temporary table for the data and drop/re-create the table. For example: tags/trac-1.0.2/trac/upgrades/db11.py.