Public schema table embedding (#803)

* Alter fixture to test objects in public schema

Properly erase and restore the public schema -- requires permissions to install pgcrypto each time.

* Test for fks through public schema tables

* Thanks @fab1an
This commit is contained in:
Joe Nelson
2017-02-12 16:32:15 -08:00
committed by GitHub
parent 1d8318ce26
commit 84f68c68cb
8 changed files with 43 additions and 28 deletions
+5
View File
@@ -3,6 +3,7 @@ GRANT USAGE ON SCHEMA
postgrest
, test
, jwt
, public
, "تست"
TO postgrest_test_anonymous;
@@ -44,6 +45,10 @@ GRANT ALL ON TABLE
, "موارد"
, addresses
, orders
, public.public_consumers
, public.public_orders
, consumers_view
, orders_view
TO postgrest_test_anonymous;
GRANT INSERT ON TABLE insertonly TO postgrest_test_anonymous;