How do you manage schema upgrades to a production database?

Liquibase liquibase.org: it understands hibernate definitions. it generates better schema update sql than hibernate it logs which upgrades have been made to a database it handles two-step changes (i.e. delete a column “foo” and then rename a different column to “foo”) it handles the concept of conditional upgrades the developer actually listens to the community … Read more

Frontend tool to manage H2 database [closed]

I like SQuirreL SQL Client, and NetBeans is very useful; but more often, I just fire up the built-in org.h2.tools.Server and browse port 8082: $ java -cp /opt/h2/bin/h2.jar org.h2.tools.Server -help Starts the H2 Console (web-) server, TCP, and PG server. Usage: java org.h2.tools.Server When running without options, -tcp, -web, -browser and -pg are started. Options … Read more

Cannot drop PostgreSQL role. Error: `cannot be dropped because some objects depend on it`

DROP USER (or DROP ROLE, same thing) cannot proceed while the role still owns anything or has any granted privileges on other objects. Get rid of all privileges with DROP OWNED (which isn’t too obvious from the wording). The manual: […] Any privileges granted to the given roles on objects in the current database and … Read more

tech