Skip to content

Commit

Permalink
Merge pull request #6 from mren/fix-drop-table
Browse files Browse the repository at this point in the history
Fix drop table
  • Loading branch information
mren committed Jan 28, 2015
2 parents 7afb7d2 + 94953a8 commit 4f339bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -29,5 +29,5 @@
},
"scripts": {
},
"version": "1.3.0"
"version": "1.4.0"
}
2 changes: 1 addition & 1 deletion share/drop-all-tables.sql
Expand Up @@ -2,7 +2,7 @@ DO $$
BEGIN
CREATE TABLE IF NOT EXISTS foo ();
EXECUTE (
SELECT string_agg('DROP TABLE IF EXISTS ' || table_name || ' CASCADE;', '')
SELECT string_agg('DROP TABLE IF EXISTS "' || table_name || '" CASCADE;', '')
FROM information_schema.tables
WHERE table_schema = 'public' AND table_type = 'BASE TABLE'
);
Expand Down

0 comments on commit 4f339bd

Please sign in to comment.