[manual] Humbug testing databases now backed by postgres

Currently our test database is backed by sqlite; this commit moves
us to using postgres for our all database needs. This, in conjunction
with the patched django on github, allow us to have fewer hacks and
more true-to-life tests. It also sets the stage for testing the bulk_create
and schema search_path patches made to django.

Developers will need to run:
./tools/postgres-init-test-db
./tools/do-destroy-rebuild-test-database

this is assuming that they have already run:
./tools/postgres-init-db
./tools/do-destroy-rebuild-database

at some point on this pg_cluster. (The ordering is important; it will other-
wise complain about the south_migration table).

(imported from commit c56c6f27e13df7ae10b2e643e65d669dde61af3d)
This commit is contained in:
acrefoot
2013-05-07 23:30:42 -04:00
committed by Leo Franchi
parent 33dd01885a
commit 94c61f5507
8 changed files with 71 additions and 24 deletions

4
tools/postgres-init-test-db Executable file
View File

@@ -0,0 +1,4 @@
#/bin/sh -xe
$(dirname $0)/postgres-init-db humbug_test xxxxxxxxxxxx humbug_test humbug,public