Skip to content

Commit f8b85af

Browse files
committed
chore: create table used in testing
1 parent b89e025 commit f8b85af

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

migrations/tests/test.sql

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,14 @@ CREATE EXTENSION IF NOT EXISTS pgtap;
3131

3232
SELECT no_plan();
3333

34+
CREATE TABLE test_priv (
35+
id serial PRIMARY KEY,
36+
name text
37+
);
38+
39+
GRANT DELETE, INSERT, REFERENCES, SELECT, TRIGGER, TRUNCATE, UPDATE
40+
ON TABLE test_priv TO anon, authenticated, service_role;
41+
3442
-- Add these permission tests before loading other test files
3543
-- Test permissions on test_priv table
3644
SELECT has_table_privilege('anon'::name, 'test_priv'::regclass, 'DELETE');

0 commit comments

Comments
 (0)