Skip to content

Commit 2902929

Browse files
committed
Drop table if exists
1 parent 7521e24 commit 2902929

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

script/create-test-tables.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ var con = new pg.Client({
4040
con.connect();
4141
if(args.down) {
4242
console.log("Dropping table 'person'")
43-
var query = con.query("drop table person");
43+
var query = con.query("drop table if exists person");
4444
query.on('end', function() {
4545
console.log("Dropped!");
4646
con.end();

0 commit comments

Comments
 (0)