Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
27 changes: 4 additions & 23 deletions .github/workflows/run-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,28 +73,9 @@ jobs:
env: {}
- package: graphile/graphile-search-plugin
env: {}
- package: graphile/graphile-plugin-fulltext-filter
- package: graphile/graphile-authz
env: {}
- package: graphile/graphile-simple-inflector
env: {}
- package: graphile/graphile-many-to-many
env: {}
- package: graphile/graphile-i18n
env: {}
- package: graphile/graphile-meta-schema
env: {}
- package: graphile/graphile-upload-plugin
env:
BUCKET_NAME: test-upload-bucket
- package: graphile/graphile-postgis
env: {}
- package: graphile/graphile-plugin-connection-filter
env: {}
- package: graphile/graphile-plugin-connection-filter-postgis
env: {}
- package: graphile/graphile-pg-type-mappings
env: {}
- package: graphile/graphile-sql-expression-validator
- package: graphile/postgraphile-plugin-pgvector
env: {}
- package: graphql/server-test
env: {}
Expand Down Expand Up @@ -179,14 +160,14 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
node-version: '22'

- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 10

- name: build
- name: install
run: pnpm install

- name: build
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
-- requires: schemas/public/schema

BEGIN;
CREATE DOMAIN attachment AS text CHECK (VALUE ~ '^(https?)://[^\s/$.?#].[^\s]*$');
COMMENT ON DOMAIN attachment IS E'@name pgpmInternalTypeAttachment';
CREATE DOMAIN attachment AS text;
COMMENT ON DOMAIN attachment IS E'@name constructiveInternalTypeAttachment';
COMMIT;
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
-- requires: schemas/public/schema

BEGIN;
CREATE DOMAIN email AS citext CHECK (value ~ '^[a-zA-Z0-9.!#$%&''*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$');
COMMENT ON DOMAIN email IS E'@name pgpmInternalTypeEmail';
CREATE DOMAIN email AS citext;
COMMENT ON DOMAIN email IS E'@name constructiveInternalTypeEmail';
COMMIT;

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
-- requires: schemas/public/schema

BEGIN;
CREATE DOMAIN hostname AS text CHECK (VALUE ~ '^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9])\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9\-]*[A-Za-z0-9])$');
COMMENT ON DOMAIN hostname IS E'@name pgpmInternalTypeHostname';
CREATE DOMAIN hostname AS text;
COMMENT ON DOMAIN hostname IS E'@name constructiveInternalTypeHostname';
COMMIT;

Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@
-- requires: schemas/public/schema

BEGIN;
CREATE DOMAIN image AS jsonb CHECK (
value ?& ARRAY['url', 'mime']
AND
value->>'url' ~ '^(https?)://[^\s/$.?#].[^\s]*$'
);
COMMENT ON DOMAIN image IS E'@name pgpmInternalTypeImage';
CREATE DOMAIN image AS jsonb CHECK (value ? 'url');
COMMENT ON DOMAIN image IS E'@name constructiveInternalTypeImage';
COMMIT;

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
-- requires: schemas/public/schema

BEGIN;
CREATE DOMAIN origin AS text CHECK (VALUE = substring(VALUE from '^(https?://[^/]*)'));
COMMENT ON DOMAIN origin IS E'@name pgpmInternalTypeOrigin';
CREATE DOMAIN origin AS text CHECK (value ~ '^https?://[^\s]+$');
COMMENT ON DOMAIN origin IS E'@name constructiveInternalTypeOrigin';
COMMIT;

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,14 +1,7 @@
-- Deploy schemas/public/domains/upload to pg

-- requires: schemas/public/schema

BEGIN;

CREATE DOMAIN upload AS jsonb CHECK (
value ?& ARRAY['url', 'mime']
AND
value->>'url' ~ '^(https?)://[^\s/$.?#].[^\s]*$'
);
COMMENT ON DOMAIN upload IS E'@name pgpmInternalTypeUpload';

CREATE DOMAIN upload AS jsonb CHECK (value ? 'url' OR value ? 'id' OR value ? 'key');
COMMENT ON DOMAIN upload IS E'@name constructiveInternalTypeUpload';
COMMIT;
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
-- requires: schemas/public/schema

BEGIN;
CREATE DOMAIN url AS text CHECK (VALUE ~ '^(https?)://[^\s/$.?#].[^\s]*$');
COMMENT ON DOMAIN url IS E'@name pgpmInternalTypeUrl';
CREATE DOMAIN url AS text CHECK (value ~ '^https?://[^\s]+$');
COMMENT ON DOMAIN url IS E'@name constructiveInternalTypeUrl';
COMMIT;

Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ schemas/public/domains/attachment [schemas/public/schema] 2017-08-11T08:11:51Z s
schemas/public/domains/email [schemas/public/schema] 2017-08-11T08:11:51Z skitch <skitch@5b0c196eeb62> # add schemas/public/domains/email
schemas/public/domains/hostname [schemas/public/schema] 2017-08-11T08:11:51Z skitch <skitch@5b0c196eeb62> # add schemas/public/domains/hostname
schemas/public/domains/image [schemas/public/schema] 2017-08-11T08:11:51Z skitch <skitch@5b0c196eeb62> # add schemas/public/domains/image
schemas/public/domains/multiple_select [schemas/public/schema] 2017-08-11T08:11:51Z skitch <skitch@5b0c196eeb62> # add schemas/public/domains/multiple_select
schemas/public/domains/origin [schemas/public/schema] 2017-08-11T08:11:51Z skitch <skitch@5b0c196eeb62> # add schemas/public/domains/origin
schemas/public/domains/single_select [schemas/public/schema] 2017-08-11T08:11:51Z skitch <skitch@5b0c196eeb62> # add schemas/public/domains/single_select
schemas/public/domains/upload [schemas/public/schema] 2017-08-11T08:11:51Z skitch <skitch@5b0c196eeb62> # add schemas/public/domains/upload
schemas/public/domains/url [schemas/public/schema] 2017-08-11T08:11:51Z skitch <skitch@5b0c196eeb62> # add schemas/public/domains/url

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading