We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5eb8ba2 + 8284315 commit a4caea5Copy full SHA for a4caea5
script/create-test-tables.js
@@ -40,7 +40,7 @@ var con = new pg.Client({
40
con.connect();
41
if(args.down) {
42
console.log("Dropping table 'person'")
43
- var query = con.query("drop table person");
+ var query = con.query("drop table if exists person");
44
query.on('end', function() {
45
console.log("Dropped!");
46
con.end();
test/cli.js
@@ -9,6 +9,9 @@ for(var i = 0; i < process.argv.length; i++) {
9
case 'binary':
10
config.binary = true;
11
break;
12
+ case 'down':
13
+ config.down = true;
14
+ break;
15
default:
16
17
}
0 commit comments