@pgpm/services 0.16.5 → 0.16.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pgpm/services",
3
- "version": "0.16.5",
3
+ "version": "0.16.8",
4
4
  "description": "Services schemas for module registration and service configuration",
5
5
  "author": "Dan Lynch <pyramation@gmail.com>",
6
6
  "contributors": [
@@ -21,7 +21,7 @@
21
21
  "test:watch": "jest --watch"
22
22
  },
23
23
  "dependencies": {
24
- "@pgpm/metaschema-schema": "0.16.5",
24
+ "@pgpm/metaschema-schema": "0.16.8",
25
25
  "@pgpm/verify": "0.16.0"
26
26
  },
27
27
  "devDependencies": {
@@ -35,5 +35,5 @@
35
35
  "bugs": {
36
36
  "url": "https://github.com/constructive-io/constructive-db/issues"
37
37
  },
38
- "gitHead": "ce419d2c087d6c92a8e4a2fe87306bad6c10875e"
38
+ "gitHead": "a0718b6712d797acacfd51fbcdad8a6d577d8bbc"
39
39
  }
package/pgpm.plan CHANGED
@@ -5,7 +5,6 @@
5
5
  schemas/services_private/schema 2017-08-11T08:11:51Z skitch <skitch@5b0c196eeb62> # add schemas/services_private/schema
6
6
  schemas/services_public/schema 2017-08-11T08:11:51Z skitch <skitch@5b0c196eeb62> # add schemas/services_public/schema
7
7
  schemas/services_public/tables/apis/table [schemas/services_public/schema metaschema-schema:schemas/metaschema_public/tables/database/table] 2017-08-11T08:11:51Z skitch <skitch@5b0c196eeb62> # add schemas/services_public/tables/apis/table
8
- schemas/services_public/tables/api_extensions/table [schemas/services_public/schema schemas/services_public/tables/apis/table metaschema-schema:schemas/metaschema_public/tables/database_extension/table metaschema-schema:schemas/metaschema_public/tables/extension/table metaschema-schema:schemas/metaschema_public/tables/database/table] 2017-08-11T08:11:51Z skitch <skitch@5b0c196eeb62> # add schemas/services_public/tables/api_extensions/table
9
8
  schemas/services_public/tables/api_modules/table [schemas/services_public/schema schemas/services_public/tables/apis/table metaschema-schema:schemas/metaschema_public/tables/database/table] 2017-08-11T08:11:51Z skitch <skitch@5b0c196eeb62> # add schemas/services_public/tables/api_modules/table
10
9
  schemas/services_public/tables/api_schemas/table [schemas/services_public/schema] 2017-08-11T08:11:51Z skitch <skitch@5b0c196eeb62> # add schemas/services_public/tables/api_schemas/table
11
10
  schemas/services_public/tables/sites/table [schemas/services_public/schema metaschema-schema:schemas/metaschema_public/tables/database/table] 2017-08-11T08:11:51Z skitch <skitch@5b0c196eeb62> # add schemas/services_public/tables/sites/table
@@ -1,36 +0,0 @@
1
- -- Deploy schemas/services_public/tables/api_extensions/table to pg
2
-
3
- -- requires: schemas/services_public/schema
4
- -- requires: schemas/services_public/tables/apis/table
5
-
6
- -- requires: schemas/metaschema_public/tables/database_extension/table
7
- -- requires: schemas/metaschema_public/tables/extension/table
8
- -- requires: schemas/metaschema_public/tables/database/table
9
-
10
-
11
- BEGIN;
12
-
13
- -- NOTE: not directly mapping to extensions on purpose, to make it simple for api usage
14
-
15
- CREATE TABLE services_public.api_extensions (
16
- id uuid PRIMARY KEY DEFAULT uuid_generate_v4 (),
17
- schema_name text,
18
- database_id uuid NOT NULL,
19
- api_id uuid NOT NULL,
20
-
21
- --
22
-
23
- CONSTRAINT db_fkey FOREIGN KEY (database_id) REFERENCES metaschema_public.database (id) ON DELETE CASCADE,
24
- CONSTRAINT api_fkey FOREIGN KEY (api_id) REFERENCES services_public.apis (id) ON DELETE CASCADE,
25
-
26
- UNIQUE (schema_name, api_id)
27
- );
28
-
29
- -- WE DO WANT m2m!
30
- -- COMMENT ON CONSTRAINT db_fkey ON services_public.api_extensions IS E'@omit manyToMany';
31
- -- COMMENT ON CONSTRAINT api_fkey ON services_public.api_extensions IS E'@omit manyToMany';
32
-
33
- CREATE INDEX api_extension_database_id_idx ON services_public.api_extensions ( database_id );
34
- CREATE INDEX api_extension_api_id_idx ON services_public.api_extensions ( api_id );
35
-
36
- COMMIT;
@@ -1,7 +0,0 @@
1
- -- Revert schemas/services_public/tables/api_extensions/table from pg
2
-
3
- BEGIN;
4
-
5
- DROP TABLE services_public.api_extensions;
6
-
7
- COMMIT;