Skip to content

Commit

Permalink
chore(test): Assert that partial indexes don't get exported (#126)
Browse files Browse the repository at this point in the history
  • Loading branch information
benjie committed Dec 3, 2017
1 parent 2d9fbb9 commit 9881819
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/postgraphile-core/__tests__/kitchen-sink-schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ create table c.person (
created_at timestamp default current_timestamp
);

-- This should not add a query to the schema
create unique index uniq_person__email_id_3 on c.person (email) where (id = 3);

comment on table c.person is 'Person test comment';
comment on column c.person.name is 'The person鈥檚 name';

Expand Down Expand Up @@ -60,6 +63,9 @@ create table a.post (
comptypes a.comptype[]
);

-- This should not add a query to the schema
create unique index uniq_post__headline_author_3 on a.post (headline) where (author_id = 3);

create type a.letter as enum ('a', 'b', 'c', 'd');
create type b.color as enum ('red', 'green', 'blue');
create type b.enum_caps as enum ('FOO_BAR', 'BAR_FOO', 'BAZ_QUX', '0_BAR');
Expand Down

0 comments on commit 9881819

Please sign in to comment.