by derefr · 4y ago · 0 comments
1. begin a transaction;
2. rename your table (or the entire schema) to some temporary/anonymous name;
3. perform the DDL operation;
4. rename your table/schema back;
5. commit the transaction.
I have no idea why this works, but it does!