You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Reorder table columns by dragging on engines other than MySQL and MariaDB #2479
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.
Activity