Skip to content

Commit

Permalink
Add CASCADE to DROP SCHEMA... in tear_down #138
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafa de la Torre committed Sep 9, 2015
1 parent d67f097 commit 6e4a5b5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/extension/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ function create_role_and_schema() {

function drop_role_and_schema() {
local ROLE=$1
sql "DROP SCHEMA \"${ROLE}\";"
sql "DROP SCHEMA \"${ROLE}\" CASCADE;"
sql "REVOKE CONNECT ON DATABASE \"${DATABASE}\" FROM \"${ROLE}\";"
sql "DROP ROLE \"${ROLE}\";"
}
Expand Down Expand Up @@ -210,8 +210,8 @@ function tear_down() {
sql "DROP SCHEMA cartodb CASCADE"

log_info "########################### TEAR DOWN ###########################"
sql 'DROP SCHEMA cdb_testmember_1;'
sql 'DROP SCHEMA cdb_testmember_2;'
sql 'DROP SCHEMA cdb_testmember_1 CASCADE;'
sql 'DROP SCHEMA cdb_testmember_2 CASCADE;'

sql "REVOKE CONNECT ON DATABASE \"${DATABASE}\" FROM cdb_testmember_1;"
sql "REVOKE CONNECT ON DATABASE \"${DATABASE}\" FROM cdb_testmember_2;"
Expand Down

0 comments on commit 6e4a5b5

Please sign in to comment.