Ticket #965 (assigned enhancement)

Opened 3 years ago

Last modified 21 months ago

support "after col_name" in add_column

Reported by: anonymous Owned by: andrew
Priority: minor Milestone: The Future
Component: commands Version: unknown
Keywords: Cc:

Description

After applying an add_column migration, I noticed the new columns were appended to the end of the table columns. This surprised me, because I had modified my models.py by adding fields in specific positions, and I assumed South would use that ordering. Now my table and my Model class are out of synch (with respect to field order). Could a flag be added to support this correspondence?

Change History

comment:1 Changed 3 years ago by andrew

  • Status changed from new to assigned
  • Milestone set to The Future

I suppose it could be done, but it's not supported on all backends, and column ordering is considered a non-essential database feature in South, so I'm marking this as [sometime in] The Future.

comment:2 Changed 21 months ago by kim.vogt@…

+1'ing this feature. I know it's not an essential db feature, but for readability (when using SQL Pro for instance), it's great.

Note: See TracTickets for help on using tickets.