Last active
January 17, 2020 11:03
-
-
Save keksipurkki/be1355c3df93fba87a0c8abb7386210d to your computer and use it in GitHub Desktop.
PostgreSQL — Nuke the public schema
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- You sane bro? | |
DROP SCHEMA public CASCADE; | |
CREATE SCHEMA public; | |
GRANT ALL ON SCHEMA public TO postgres; | |
GRANT ALL ON SCHEMA public TO public; | |
COMMENT ON SCHEMA public IS 'standard public schema'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment