File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -874,6 +874,8 @@ def make(self, values):
874874
875875if __name__ == '__main__' :
876876 db = Postgres ("postgres://jrandom@localhost/test" )
877+ db .run ("DROP SCHEMA IF EXISTS public CASCADE" )
878+ db .run ("CREATE SCHEMA public" )
877879 db .run ("DROP TABLE IF EXISTS foo CASCADE" )
878880 import doctest
879881 doctest .testmod ()
Original file line number Diff line number Diff line change @@ -261,6 +261,8 @@ def update_attributes(self, **kw):
261261
262262 from postgres import Postgres
263263 db = Postgres ("postgres://jrandom@localhost/test" )
264+ db .run ("DROP SCHEMA IF EXISTS public CASCADE" )
265+ db .run ("CREATE SCHEMA public" )
264266 db .run ("DROP TABLE IF EXISTS foo CASCADE" )
265267 db .run ("CREATE TABLE foo (bar text, baz int)" )
266268 db .run ("INSERT INTO foo VALUES ('blam', 42)" )
You can’t perform that action at this time.
0 commit comments