Skip to content

Reorder table columns by dragging on engines other than MySQL and MariaDB #2479

Closed

Description

@datlechin

Problem

Dragging a column row in the structure editor runs ALTER TABLE ... MODIFY COLUMN ... AFTER and works on MySQL and MariaDB only. On every other engine the drag does nothing and no reason is given.

Proposed solution

  • Use a positional ALTER where the engine has one: ClickHouse ALTER TABLE ... MODIFY COLUMN ... AFTER, MySQL and MariaDB as today.
  • Where there is none (PostgreSQL, SQLite, Oracle), offer the rebuild explicitly: create the table in the wanted order, copy, swap, restore indexes and constraints, all in one script shown before anything runs.
  • Where neither is possible, disable the drag with a tooltip saying why, instead of ignoring it silently.

Alternatives considered

Hand-written table rebuild.

Related database type

PostgreSQL

Activity

  1. added
    enhancement
    on Aug 26, 2026
  2. self-assigned this
    on Aug 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions