Improve test db management (#747)

This commit is contained in:
dsimunic
2016-12-01 21:06:10 -08:00
committed by Joe Nelson
parent 6c009b71d3
commit 0d85152e42
11 changed files with 216 additions and 54 deletions
+2 -5
View File
@@ -1,6 +1,3 @@
DROP DATABASE IF EXISTS postgrest_test;
DROP ROLE IF EXISTS postgrest_test;
CREATE USER postgrest_test createdb createrole;
CREATE DATABASE postgrest_test OWNER postgrest_test;
CREATE EXTENSION IF NOT EXISTS pgcrypto;
ALTER DATABASE postgrest_test SET request.jwt.claim.id = '-1';
ALTER DATABASE :db SET request.jwt.claim.id = '-1';