Avoid 'ERROR: cannot drop table users because other objects depend on it' by reordering drop statements