Skip to content

Commit

Permalink
feat(watch): detect more DB changes (graphile#289)
Browse files Browse the repository at this point in the history
* Watch for more changes

* More flexible @types/graphql dep
  • Loading branch information
benjie authored Aug 24, 2018
1 parent 7bfaf78 commit 80e97c2
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 4 deletions.
16 changes: 16 additions & 0 deletions packages/graphile-build-pg/res/watch-fixtures.sql
Original file line number Diff line number Diff line change
Expand Up @@ -49,26 +49,42 @@ $$ language plpgsql;
create event trigger postgraphile_watch_ddl
on ddl_command_end
when tag in (
-- Ref: https://www.postgresql.org/docs/10/static/event-trigger-matrix.html
'ALTER AGGREGATE',
'ALTER DOMAIN',
'ALTER EXTENSION',
'ALTER FOREIGN TABLE',
'ALTER FUNCTION',
'ALTER POLICY',
'ALTER SCHEMA',
'ALTER TABLE',
'ALTER TYPE',
'ALTER VIEW',
'COMMENT',
'CREATE AGGREGATE',
'CREATE DOMAIN',
'CREATE EXTENSION',
'CREATE FOREIGN TABLE',
'CREATE FUNCTION',
'CREATE INDEX',
'CREATE POLICY',
'CREATE RULE',
'CREATE SCHEMA',
'CREATE TABLE',
'CREATE TABLE AS',
'CREATE VIEW',
'DROP AGGREGATE',
'DROP DOMAIN',
'DROP EXTENSION',
'DROP FOREIGN TABLE',
'DROP FUNCTION',
'DROP INDEX',
'DROP OWNED',
'DROP POLICY',
'DROP RULE',
'DROP SCHEMA',
'DROP TABLE',
'DROP TYPE',
'DROP VIEW',
'GRANT',
'REVOKE',
Expand Down
2 changes: 1 addition & 1 deletion packages/graphile-build/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
},
"homepage": "https://graphile.org/graphile-build/",
"dependencies": {
"@types/graphql": "0.13.4",
"@types/graphql": "^0.13.4",
"debug": ">=2 <3",
"graphql-parse-resolve-info": "4.0.0-rc.6",
"lodash": ">=4 <5",
Expand Down
2 changes: 1 addition & 1 deletion packages/graphql-parse-resolve-info/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"typescript": "3.0.1"
},
"dependencies": {
"@types/graphql": "0.13.4",
"@types/graphql": "^0.13.4",
"debug": ">=2 <3"
},
"files": [
Expand Down
2 changes: 1 addition & 1 deletion packages/postgraphile-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"url": "https://github.com/graphile/graphile-build/issues"
},
"dependencies": {
"@types/graphql": "0.13.4",
"@types/graphql": "^0.13.4",
"graphile-build": "4.0.0-rc.6",
"graphile-build-pg": "4.0.0-rc.6"
},
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
version "1.2.0"
resolved "https://registry.yarnpkg.com/@types/events/-/events-1.2.0.tgz#81a6731ce4df43619e5c8c945383b3e62a89ea86"

"@types/[email protected]":
"@types/graphql@^0.13.4":
version "0.13.4"
resolved "https://registry.yarnpkg.com/@types/graphql/-/graphql-0.13.4.tgz#55ae9c29f0fd6b85ee536f5c72b4769d5c5e06b1"

Expand Down

0 comments on commit 80e97c2

Please sign in to comment.