S
Supabase•3y ago
Miguel

Re-order columns in Supabase Studio?

Hey 👋 Is there a way to do an actual re-ordering in the columns of a table? I know we can drag the columns but it re-orders only locally (through localStorage). I would instead prefer to re-order for everyone at the same time (see screenshot attached) Maybe through some SQL statements? Cheers!
No description
3 Replies
Miguel
MiguelOP•3y ago
I feel a drop & re-create the table is in order
garyaustin
garyaustin•3y ago
It is non trivial to reorder columns in postgres.... Just one link on it... https://stackoverflow.com/questions/285733/how-do-i-alter-the-position-of-a-column-in-a-postgresql-database-table
Stack Overflow
How do I alter the position of a column in a PostgreSQL database ta...
I've tried the following, but I was unsuccessful: ALTER TABLE person ALTER COLUMN dob POSITION 37;
Miguel
MiguelOP•3y ago
oh well, thanks for the input @garyaustin

Did you find this page helpful?