@pgpm/services 0.16.0 → 0.16.2

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.
@@ -167,14 +167,14 @@ describe('services functionality', () => {
167
167
  );
168
168
 
169
169
  const [publicAssoc] = await pg.any(
170
- `INSERT INTO services_public.api_schemata (database_id, schema_id, api_id)
170
+ `INSERT INTO services_public.api_schemas (database_id, schema_id, api_id)
171
171
  VALUES ($1, $2, $3)
172
172
  RETURNING *`,
173
173
  [database_id, schema.id, objs.apis.public.id]
174
174
  );
175
175
 
176
176
  const [adminAssoc] = await pg.any(
177
- `INSERT INTO services_public.api_schemata (database_id, schema_id, api_id)
177
+ `INSERT INTO services_public.api_schemas (database_id, schema_id, api_id)
178
178
  VALUES ($1, $2, $3)
179
179
  RETURNING *`,
180
180
  [database_id, schema.id, objs.apis.admin.id]
@@ -1,10 +1,10 @@
1
- -- Deploy schemas/services_public/tables/api_schemata/table to pg
1
+ -- Deploy schemas/services_public/tables/api_schemas/table to pg
2
2
 
3
3
  -- requires: schemas/services_public/schema
4
4
 
5
5
  BEGIN;
6
6
 
7
- CREATE TABLE services_public.api_schemata (
7
+ CREATE TABLE services_public.api_schemas (
8
8
  id uuid PRIMARY KEY DEFAULT uuid_generate_v4 (),
9
9
  database_id uuid NOT NULL,
10
10
  schema_id uuid NOT NULL,
@@ -18,13 +18,13 @@ CREATE TABLE services_public.api_schemata (
18
18
  unique(api_id, schema_id)
19
19
  );
20
20
 
21
- -- COMMENT ON CONSTRAINT schema_fkey ON services_public.api_schemata IS E'@omit manyToMany';
22
- -- COMMENT ON CONSTRAINT api_fkey ON services_public.api_schemata IS E'@omit manyToMany';
23
- COMMENT ON CONSTRAINT db_fkey ON services_public.api_schemata IS E'@omit manyToMany';
21
+ -- COMMENT ON CONSTRAINT schema_fkey ON services_public.api_schemas IS E'@omit manyToMany';
22
+ -- COMMENT ON CONSTRAINT api_fkey ON services_public.api_schemas IS E'@omit manyToMany';
23
+ COMMENT ON CONSTRAINT db_fkey ON services_public.api_schemas IS E'@omit manyToMany';
24
24
 
25
25
 
26
- CREATE INDEX api_schemata_database_id_idx ON services_public.api_schemata ( database_id );
27
- CREATE INDEX api_schemata_schema_id_idx ON services_public.api_schemata ( schema_id );
28
- CREATE INDEX api_schemata_api_id_idx ON services_public.api_schemata ( api_id );
26
+ CREATE INDEX api_schemas_database_id_idx ON services_public.api_schemas ( database_id );
27
+ CREATE INDEX api_schemas_schema_id_idx ON services_public.api_schemas ( schema_id );
28
+ CREATE INDEX api_schemas_api_id_idx ON services_public.api_schemas ( api_id );
29
29
 
30
30
  COMMIT;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pgpm/services",
3
- "version": "0.16.0",
3
+ "version": "0.16.2",
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.0",
24
+ "@pgpm/metaschema-schema": "0.16.2",
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": "3b2260bf7640d7194f237d556c7e5033bc7a9405"
38
+ "gitHead": "0dc5221ad6b6e2ea1998d1f44d92f214bd6013e4"
39
39
  }
package/pgpm.plan CHANGED
@@ -7,7 +7,7 @@ schemas/services_public/schema 2017-08-11T08:11:51Z skitch <skitch@5b0c196eeb62>
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
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
9
  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
- schemas/services_public/tables/api_schemata/table [schemas/services_public/schema] 2017-08-11T08:11:51Z skitch <skitch@5b0c196eeb62> # add schemas/services_public/tables/api_schemata/table
10
+ 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
11
  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
12
12
  schemas/services_public/tables/apps/table [schemas/services_public/schema schemas/services_public/tables/sites/table metaschema-schema:schemas/metaschema_public/tables/database/table] 2017-08-11T08:11:51Z skitch <skitch@5b0c196eeb62> # add schemas/services_public/tables/apps/table
13
13
  schemas/services_public/tables/domains/table [schemas/services_public/schema schemas/services_public/tables/apis/table schemas/services_public/tables/sites/table metaschema-schema:schemas/metaschema_public/tables/database/table] 2017-08-11T08:11:51Z skitch <skitch@5b0c196eeb62> # add schemas/services_public/tables/domains/table
@@ -0,0 +1,7 @@
1
+ -- Revert schemas/services_public/tables/api_schemas/table from pg
2
+
3
+ BEGIN;
4
+
5
+ DROP TABLE services_public.api_schemas;
6
+
7
+ COMMIT;
@@ -1,7 +0,0 @@
1
- -- Revert schemas/services_public/tables/api_schemata/table from pg
2
-
3
- BEGIN;
4
-
5
- DROP TABLE services_public.api_schemata;
6
-
7
- COMMIT;