Fix "WARNING: there is no transaction in progress"

(imported from commit e8a985b610990a4e937a527e85189e927c42667c)
This commit is contained in:
acrefoot 2013-05-22 14:34:25 -04:00
parent 991630c031
commit 65c156decc

View File

@ -14,7 +14,6 @@ if [ $template_grep_error_code == "0" ]; then
psql -h localhost postgres humbug_test << EOF
DROP DATABASE humbug_test;
CREATE DATABASE humbug_test TEMPLATE humbug_test_template;
COMMIT;
EOF
exit 0
fi
@ -45,5 +44,4 @@ python manage.py dumpdata --settings=humbug.test_settings \
psql -h localhost postgres humbug_test << EOF
DROP DATABASE humbug_test_template;
CREATE DATABASE humbug_test_template TEMPLATE humbug_test;
COMMIT;
EOF