Category Archives: PostgreSQL
PostgreSQL, SQLAlchemy, Dropping all tables and sequences
I’ve been working in deployment scripts for my current project and sometimes I need to drop all the tables and sequences from the database so I can create everything from scratch. I had been doing a DROP SCHEMA public CASCADE; CREATE SCHEMA public AUTHORIZATION bob; GRANT ALL ON SCHEMA public TO bob; This [...]

Recent Comments