@pgpm/metaschema-schema 0.16.2 → 0.16.3

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.
@@ -3,6 +3,7 @@
3
3
  -- requires: schemas/metaschema_public/schema
4
4
  -- requires: schemas/metaschema_public/tables/database/table
5
5
  -- requires: schemas/metaschema_public/tables/table/table
6
+ -- requires: schemas/metaschema_public/types/object_category
6
7
 
7
8
  BEGIN;
8
9
 
@@ -15,7 +16,14 @@ CREATE TABLE metaschema_public.check_constraint (
15
16
  type text,
16
17
  field_ids uuid[] NOT NULL,
17
18
  expr jsonb,
18
- --
19
+
20
+ smart_tags jsonb,
21
+
22
+ category metaschema_public.object_category NOT NULL DEFAULT 'app',
23
+ module text NULL,
24
+ scope int NULL,
25
+
26
+ tags citext[] NOT NULL DEFAULT '{}',
19
27
 
20
28
  CONSTRAINT db_fkey FOREIGN KEY (database_id) REFERENCES metaschema_public.database (id) ON DELETE CASCADE,
21
29
  CONSTRAINT table_fkey FOREIGN KEY (table_id) REFERENCES metaschema_public.table (id) ON DELETE CASCADE,
@@ -3,27 +3,10 @@
3
3
 
4
4
  -- requires: schemas/metaschema_public/schema
5
5
  -- requires: schemas/metaschema_public/tables/table/table
6
+ -- requires: schemas/metaschema_public/types/object_category
6
7
 
7
8
  BEGIN;
8
9
 
9
- -- TODO should we just query this table and make a view?
10
- -- https://www.postgresql.org/docs/9.2/catalog-pg-attribute.html
11
-
12
- -- IF YOU WANT TO REMOVE THIS TABLE, answer the qustion, how would you add RLS to this:
13
- -- SELECT
14
- -- attrelid::text AS tbl
15
- -- , attname::text AS col
16
- -- , p.attnum::int as id,
17
- -- t.typname as typename
18
-
19
- -- FROM pg_catalog.pg_attribute p
20
- -- INNER JOIN pg_catalog.pg_type t ON (t.oid = p.atttypid)
21
- -- WHERE attrelid = 'dude_schema.products'::regclass
22
- -- AND p.attnum > 0
23
- -- AND NOT attisdropped;
24
-
25
- CREATE TYPE metaschema_public.field_category AS ENUM ('core', 'module', 'app');
26
-
27
10
  CREATE TABLE metaschema_public.field (
28
11
  id uuid PRIMARY KEY DEFAULT uuid_generate_v4 (),
29
12
  database_id uuid NOT NULL DEFAULT uuid_nil(),
@@ -58,11 +41,7 @@ CREATE TABLE metaschema_public.field (
58
41
 
59
42
  tags citext[] NOT NULL DEFAULT '{}',
60
43
 
61
- -- Field categorization for system/module/app fields (mirrors table categorization)
62
- -- category: 'core' for system fields (id, entity_id, actor_id), 'module' for module-generated fields, 'app' for user-defined fields
63
- -- module: the module name that created this field (e.g., 'users', 'permissions', 'memberships')
64
- -- scope: membership_type int (1=app, 2=org, 3=group, NULL=not scoped)
65
- category metaschema_public.field_category NOT NULL DEFAULT 'app',
44
+ category metaschema_public.object_category NOT NULL DEFAULT 'app',
66
45
  module text NULL,
67
46
  scope int NULL,
68
47
 
@@ -3,6 +3,7 @@
3
3
  -- requires: schemas/metaschema_public/tables/field/table
4
4
  -- requires: schemas/metaschema_public/tables/table/table
5
5
  -- requires: schemas/metaschema_public/schema
6
+ -- requires: schemas/metaschema_public/types/object_category
6
7
 
7
8
  BEGIN;
8
9
 
@@ -18,10 +19,14 @@ CREATE TABLE metaschema_public.foreign_key_constraint (
18
19
  field_ids uuid[] NOT NULL,
19
20
  ref_table_id uuid NOT NULL REFERENCES metaschema_public.table (id) ON DELETE CASCADE,
20
21
  ref_field_ids uuid[] NOT NULL,
21
- delete_action char(1) DEFAULT 'c', -- postgres default is 'a'
22
+ delete_action char(1) DEFAULT 'c',
22
23
  update_action char(1) DEFAULT 'a',
23
24
 
24
- --
25
+ category metaschema_public.object_category NOT NULL DEFAULT 'app',
26
+ module text NULL,
27
+ scope int NULL,
28
+
29
+ tags citext[] NOT NULL DEFAULT '{}',
25
30
 
26
31
  CONSTRAINT db_fkey FOREIGN KEY (database_id) REFERENCES metaschema_public.database (id) ON DELETE CASCADE,
27
32
  CONSTRAINT table_fkey FOREIGN KEY (table_id) REFERENCES metaschema_public.table (id) ON DELETE CASCADE,
@@ -3,6 +3,7 @@
3
3
  -- requires: schemas/metaschema_public/schema
4
4
  -- requires: schemas/metaschema_public/tables/table/table
5
5
  -- requires: schemas/metaschema_public/tables/database/table
6
+ -- requires: schemas/metaschema_public/types/object_category
6
7
 
7
8
  BEGIN;
8
9
 
@@ -21,12 +22,17 @@ CREATE TABLE metaschema_public.index (
21
22
  where_clause jsonb,
22
23
  is_unique boolean NOT NULL default false,
23
24
 
24
- --
25
+ smart_tags jsonb,
26
+
27
+ category metaschema_public.object_category NOT NULL DEFAULT 'app',
28
+ module text NULL,
29
+ scope int NULL,
30
+
31
+ tags citext[] NOT NULL DEFAULT '{}',
25
32
 
26
33
  CONSTRAINT db_fkey FOREIGN KEY (database_id) REFERENCES metaschema_public.database (id) ON DELETE CASCADE,
27
34
  CONSTRAINT table_fkey FOREIGN KEY (table_id) REFERENCES metaschema_public.table (id) ON DELETE CASCADE,
28
35
 
29
- -- index names are UNIQUE across schemas, so for portability we will check against database_id
30
36
  UNIQUE (database_id, name)
31
37
  );
32
38
 
@@ -2,6 +2,7 @@
2
2
 
3
3
  -- requires: schemas/metaschema_public/schema
4
4
  -- requires: schemas/metaschema_public/tables/table/table
5
+ -- requires: schemas/metaschema_public/types/object_category
5
6
 
6
7
  BEGIN;
7
8
 
@@ -14,17 +15,19 @@ CREATE TABLE metaschema_public.policy (
14
15
  role_name text,
15
16
  privilege text,
16
17
 
17
- -- using_expression text,
18
- -- check_expression text,
19
- -- policy_text text,
20
-
21
18
  permissive boolean default true,
22
19
  disabled boolean default false,
23
20
 
24
- template text,
21
+ policy_type text,
25
22
  data jsonb,
26
23
 
27
- --
24
+ smart_tags jsonb,
25
+
26
+ category metaschema_public.object_category NOT NULL DEFAULT 'app',
27
+ module text NULL,
28
+ scope int NULL,
29
+
30
+ tags citext[] NOT NULL DEFAULT '{}',
28
31
 
29
32
  CONSTRAINT db_fkey FOREIGN KEY (database_id) REFERENCES metaschema_public.database (id) ON DELETE CASCADE,
30
33
  CONSTRAINT table_fkey FOREIGN KEY (table_id) REFERENCES metaschema_public.table (id) ON DELETE CASCADE,
@@ -1,6 +1,7 @@
1
1
  -- Deploy schemas/metaschema_public/tables/primary_key_constraint/table to pg
2
2
 
3
3
  -- requires: schemas/metaschema_public/schema
4
+ -- requires: schemas/metaschema_public/types/object_category
4
5
 
5
6
  BEGIN;
6
7
 
@@ -12,7 +13,14 @@ CREATE TABLE metaschema_public.primary_key_constraint (
12
13
  name text,
13
14
  type text,
14
15
  field_ids uuid[] NOT NULL,
15
- --
16
+
17
+ smart_tags jsonb,
18
+
19
+ category metaschema_public.object_category NOT NULL DEFAULT 'app',
20
+ module text NULL,
21
+ scope int NULL,
22
+
23
+ tags citext[] NOT NULL DEFAULT '{}',
16
24
 
17
25
  CONSTRAINT db_fkey FOREIGN KEY (database_id) REFERENCES metaschema_public.database (id) ON DELETE CASCADE,
18
26
  CONSTRAINT table_fkey FOREIGN KEY (table_id) REFERENCES metaschema_public.table (id) ON DELETE CASCADE,
@@ -2,6 +2,7 @@
2
2
 
3
3
  -- requires: schemas/metaschema_public/schema
4
4
  -- requires: schemas/metaschema_public/tables/database/table
5
+ -- requires: schemas/metaschema_public/types/object_category
5
6
 
6
7
  BEGIN;
7
8
 
@@ -11,16 +12,21 @@ CREATE TABLE metaschema_public.procedure (
11
12
 
12
13
  name text NOT NULL,
13
14
 
14
- -- MAYBE MAKE A SPECIAL RLS functions for policy making...
15
-
16
- -- can we make this all JSON?
17
15
  argnames text[],
18
16
  argtypes text[],
19
17
  argdefaults text[],
20
18
 
21
19
  lang_name text,
22
20
  definition text,
23
- --
21
+
22
+ smart_tags jsonb,
23
+
24
+ category metaschema_public.object_category NOT NULL DEFAULT 'app',
25
+ module text NULL,
26
+ scope int NULL,
27
+
28
+ tags citext[] NOT NULL DEFAULT '{}',
29
+
24
30
  CONSTRAINT db_fkey FOREIGN KEY (database_id) REFERENCES metaschema_public.database (id) ON DELETE CASCADE,
25
31
 
26
32
  UNIQUE (database_id, name)
@@ -2,6 +2,7 @@
2
2
 
3
3
  -- requires: schemas/metaschema_public/schema
4
4
  -- requires: schemas/metaschema_public/tables/database/table
5
+ -- requires: schemas/metaschema_public/types/object_category
5
6
 
6
7
  BEGIN;
7
8
 
@@ -13,7 +14,16 @@ CREATE TABLE metaschema_public.schema (
13
14
  schema_name text NOT NULL,
14
15
  label text,
15
16
  description text,
16
- --
17
+
18
+ smart_tags jsonb,
19
+
20
+ category metaschema_public.object_category NOT NULL DEFAULT 'app',
21
+ module text NULL,
22
+ scope int NULL,
23
+
24
+ tags citext[] NOT NULL DEFAULT '{}',
25
+
26
+ is_public boolean NOT NULL DEFAULT TRUE,
17
27
 
18
28
  CONSTRAINT db_fkey FOREIGN KEY (database_id) REFERENCES metaschema_public.database (id) ON DELETE CASCADE,
19
29
 
@@ -21,9 +31,6 @@ CREATE TABLE metaschema_public.schema (
21
31
  UNIQUE (schema_name)
22
32
  );
23
33
 
24
- -- TODO: build out services
25
- -- COMMENT ON COLUMN metaschema_public.schema.schema_name IS '@omit';
26
-
27
34
  ALTER TABLE metaschema_public.schema
28
35
  ADD CONSTRAINT schema_namechk CHECK (char_length(name) > 2);
29
36
 
@@ -2,11 +2,10 @@
2
2
  -- requires: schemas/metaschema_public/schema
3
3
  -- requires: schemas/metaschema_public/tables/database/table
4
4
  -- requires: schemas/metaschema_public/tables/schema/table
5
+ -- requires: schemas/metaschema_public/types/object_category
5
6
 
6
7
  BEGIN;
7
8
 
8
- CREATE TYPE metaschema_public.table_category AS ENUM ('core', 'module', 'app');
9
-
10
9
  CREATE TABLE metaschema_public.table (
11
10
  id uuid PRIMARY KEY DEFAULT uuid_generate_v4 (),
12
11
  database_id uuid NOT NULL DEFAULT uuid_nil(),
@@ -20,7 +19,7 @@ CREATE TABLE metaschema_public.table (
20
19
 
21
20
  smart_tags jsonb,
22
21
 
23
- category metaschema_public.table_category NOT NULL DEFAULT 'app',
22
+ category metaschema_public.object_category NOT NULL DEFAULT 'app',
24
23
  module text NULL,
25
24
  scope int NULL,
26
25
 
@@ -2,20 +2,26 @@
2
2
 
3
3
  -- requires: schemas/metaschema_public/schema
4
4
  -- requires: schemas/metaschema_public/tables/table/table
5
+ -- requires: schemas/metaschema_public/types/object_category
5
6
 
6
7
  BEGIN;
7
8
 
8
- -- https://www.postgresql.org/docs/12/sql-createtrigger.html
9
-
10
9
  CREATE TABLE metaschema_public.trigger (
11
10
  id uuid PRIMARY KEY DEFAULT uuid_generate_v4 (),
12
11
  database_id uuid NOT NULL DEFAULT uuid_nil(),
13
12
 
14
13
  table_id uuid NOT NULL,
15
14
  name text NOT NULL,
16
- event text, -- INSERT, UPDATE, DELETE, or TRUNCATE
15
+ event text,
17
16
  function_name text,
18
- --
17
+
18
+ smart_tags jsonb,
19
+
20
+ category metaschema_public.object_category NOT NULL DEFAULT 'app',
21
+ module text NULL,
22
+ scope int NULL,
23
+
24
+ tags citext[] NOT NULL DEFAULT '{}',
19
25
 
20
26
  CONSTRAINT db_fkey FOREIGN KEY (database_id) REFERENCES metaschema_public.database (id) ON DELETE CASCADE,
21
27
  CONSTRAINT table_fkey FOREIGN KEY (table_id) REFERENCES metaschema_public.table (id) ON DELETE CASCADE,
@@ -3,6 +3,7 @@
3
3
  -- requires: schemas/metaschema_public/schema
4
4
  -- requires: schemas/metaschema_public/tables/database/table
5
5
  -- requires: schemas/metaschema_public/tables/table/table
6
+ -- requires: schemas/metaschema_public/types/object_category
6
7
 
7
8
  BEGIN;
8
9
 
@@ -16,14 +17,16 @@ CREATE TABLE metaschema_public.unique_constraint (
16
17
  smart_tags jsonb,
17
18
  type text,
18
19
  field_ids uuid[] NOT NULL,
19
- --
20
+
21
+ category metaschema_public.object_category NOT NULL DEFAULT 'app',
22
+ module text NULL,
23
+ scope int NULL,
24
+
25
+ tags citext[] NOT NULL DEFAULT '{}',
20
26
 
21
27
  CONSTRAINT db_fkey FOREIGN KEY (database_id) REFERENCES metaschema_public.database (id) ON DELETE CASCADE,
22
28
  CONSTRAINT table_fkey FOREIGN KEY (table_id) REFERENCES metaschema_public.table (id) ON DELETE CASCADE,
23
29
 
24
- -- TODO these are unique across schema, NOT table. We'll need to update this to have database_id
25
- -- for portability
26
-
27
30
  UNIQUE (table_id, name),
28
31
  CHECK (field_ids <> '{}')
29
32
  );
@@ -0,0 +1,9 @@
1
+ -- Deploy schemas/metaschema_public/types/object_category to pg
2
+
3
+ -- requires: schemas/metaschema_public/schema
4
+
5
+ BEGIN;
6
+
7
+ CREATE TYPE metaschema_public.object_category AS ENUM ('core', 'module', 'app');
8
+
9
+ COMMIT;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pgpm/metaschema-schema",
3
- "version": "0.16.2",
3
+ "version": "0.16.3",
4
4
  "description": "Database metadata utilities and introspection functions",
5
5
  "author": "Dan Lynch <pyramation@gmail.com>",
6
6
  "contributors": [
@@ -37,5 +37,5 @@
37
37
  "bugs": {
38
38
  "url": "https://github.com/constructive-io/pgpm-modules/issues"
39
39
  },
40
- "gitHead": "0dc5221ad6b6e2ea1998d1f44d92f214bd6013e4"
40
+ "gitHead": "def088082889aa3895d9c77504941cf72a53ec6d"
41
41
  }
package/pgpm.plan CHANGED
@@ -4,26 +4,27 @@
4
4
 
5
5
  schemas/metaschema_private/schema [pgpm-inflection:schemas/inflection/tables/inflection_rules/indexes/inflection_rules_type_idx pgpm-database-jobs:schemas/app_jobs/triggers/tg_add_job_with_row pgpm-types:schemas/public/domains/url] 2017-08-11T08:11:51Z skitch <skitch@5b0c196eeb62> # add schemas/metaschema_private/schema
6
6
  schemas/metaschema_public/schema 2017-08-11T08:11:51Z skitch <skitch@5b0c196eeb62> # add schemas/metaschema_public/schema
7
+ schemas/metaschema_public/types/object_category [schemas/metaschema_public/schema] 2026-01-14T00:00:00Z devin <devin@cognition.ai> # add schemas/metaschema_public/types/object_category
7
8
  schemas/metaschema_public/tables/database/table [schemas/metaschema_public/schema] 2017-08-11T08:11:51Z skitch <skitch@5b0c196eeb62> # add schemas/metaschema_public/tables/database/table
8
- schemas/metaschema_public/tables/schema/table [schemas/metaschema_public/schema schemas/metaschema_public/tables/database/table] 2017-08-11T08:11:51Z skitch <skitch@5b0c196eeb62> # add schemas/metaschema_public/tables/schema/table
9
- schemas/metaschema_public/tables/table/table [schemas/metaschema_public/schema schemas/metaschema_public/tables/database/table schemas/metaschema_public/tables/schema/table] 2017-08-11T08:11:51Z skitch <skitch@5b0c196eeb62> # add schemas/metaschema_public/tables/table/table
10
- schemas/metaschema_public/tables/check_constraint/table [schemas/metaschema_public/schema schemas/metaschema_public/tables/database/table schemas/metaschema_public/tables/table/table] 2017-08-11T08:11:51Z skitch <skitch@5b0c196eeb62> # add schemas/metaschema_public/tables/check_constraint/table
9
+ schemas/metaschema_public/tables/schema/table [schemas/metaschema_public/schema schemas/metaschema_public/tables/database/table schemas/metaschema_public/types/object_category] 2017-08-11T08:11:51Z skitch <skitch@5b0c196eeb62> # add schemas/metaschema_public/tables/schema/table
10
+ schemas/metaschema_public/tables/table/table [schemas/metaschema_public/schema schemas/metaschema_public/tables/database/table schemas/metaschema_public/tables/schema/table schemas/metaschema_public/types/object_category] 2017-08-11T08:11:51Z skitch <skitch@5b0c196eeb62> # add schemas/metaschema_public/tables/table/table
11
+ schemas/metaschema_public/tables/check_constraint/table [schemas/metaschema_public/schema schemas/metaschema_public/tables/database/table schemas/metaschema_public/tables/table/table schemas/metaschema_public/types/object_category] 2017-08-11T08:11:51Z skitch <skitch@5b0c196eeb62> # add schemas/metaschema_public/tables/check_constraint/table
11
12
  schemas/metaschema_public/tables/extension/table [schemas/metaschema_public/schema] 2017-08-11T08:11:51Z skitch <skitch@5b0c196eeb62> # add schemas/metaschema_public/tables/extension/table
12
13
  schemas/metaschema_public/tables/database_extension/table [schemas/metaschema_public/schema schemas/metaschema_public/tables/extension/table schemas/metaschema_public/tables/database/table] 2017-08-11T08:11:51Z skitch <skitch@5b0c196eeb62> # add schemas/metaschema_public/tables/database_extension/table
13
14
  schemas/metaschema_public/tables/database/indexes/databases_database_unique_name_idx [schemas/metaschema_private/schema schemas/metaschema_public/schema schemas/metaschema_public/tables/database/table] 2017-08-11T08:11:51Z skitch <skitch@5b0c196eeb62> # add schemas/metaschema_public/tables/database/indexes/databases_database_unique_name_idx
14
- schemas/metaschema_public/tables/field/table [schemas/metaschema_public/schema schemas/metaschema_public/tables/table/table] 2017-08-11T08:11:51Z skitch <skitch@5b0c196eeb62> # add schemas/metaschema_public/tables/field/table
15
+ schemas/metaschema_public/tables/field/table [schemas/metaschema_public/schema schemas/metaschema_public/tables/table/table schemas/metaschema_public/types/object_category] 2017-08-11T08:11:51Z skitch <skitch@5b0c196eeb62> # add schemas/metaschema_public/tables/field/table
15
16
  schemas/metaschema_public/tables/field/indexes/databases_field_uniq_names_idx [schemas/metaschema_public/schema schemas/metaschema_public/tables/field/table] 2017-08-11T08:11:51Z skitch <skitch@5b0c196eeb62> # add schemas/metaschema_public/tables/field/indexes/databases_field_uniq_names_idx
16
- schemas/metaschema_public/tables/foreign_key_constraint/table [schemas/metaschema_public/tables/field/table schemas/metaschema_public/tables/table/table schemas/metaschema_public/schema] 2017-08-11T08:11:51Z skitch <skitch@5b0c196eeb62> # add schemas/metaschema_public/tables/foreign_key_constraint/table
17
+ schemas/metaschema_public/tables/foreign_key_constraint/table [schemas/metaschema_public/tables/field/table schemas/metaschema_public/tables/table/table schemas/metaschema_public/schema schemas/metaschema_public/types/object_category] 2017-08-11T08:11:51Z skitch <skitch@5b0c196eeb62> # add schemas/metaschema_public/tables/foreign_key_constraint/table
17
18
  schemas/metaschema_public/tables/full_text_search/table [schemas/metaschema_public/schema] 2017-08-11T08:11:51Z skitch <skitch@5b0c196eeb62> # add schemas/metaschema_public/tables/full_text_search/table
18
- schemas/metaschema_public/tables/index/table [schemas/metaschema_public/schema schemas/metaschema_public/tables/table/table schemas/metaschema_public/tables/database/table] 2017-08-11T08:11:51Z skitch <skitch@5b0c196eeb62> # add schemas/metaschema_public/tables/index/table
19
+ schemas/metaschema_public/tables/index/table [schemas/metaschema_public/schema schemas/metaschema_public/tables/table/table schemas/metaschema_public/tables/database/table schemas/metaschema_public/types/object_category] 2017-08-11T08:11:51Z skitch <skitch@5b0c196eeb62> # add schemas/metaschema_public/tables/index/table
19
20
  schemas/metaschema_public/tables/limit_function/table [schemas/metaschema_public/schema] 2017-08-11T08:11:51Z skitch <skitch@5b0c196eeb62> # add schemas/metaschema_public/tables/limit_function/table
20
- schemas/metaschema_public/tables/policy/table [schemas/metaschema_public/schema schemas/metaschema_public/tables/table/table] 2017-08-11T08:11:51Z skitch <skitch@5b0c196eeb62> # add schemas/metaschema_public/tables/policy/table
21
- schemas/metaschema_public/tables/primary_key_constraint/table [schemas/metaschema_public/schema] 2017-08-11T08:11:51Z skitch <skitch@5b0c196eeb62> # add schemas/metaschema_public/tables/primary_key_constraint/table
22
- schemas/metaschema_public/tables/procedure/table [schemas/metaschema_public/schema schemas/metaschema_public/tables/database/table] 2017-08-11T08:11:51Z skitch <skitch@5b0c196eeb62> # add schemas/metaschema_public/tables/procedure/table
21
+ schemas/metaschema_public/tables/policy/table [schemas/metaschema_public/schema schemas/metaschema_public/tables/table/table schemas/metaschema_public/types/object_category] 2017-08-11T08:11:51Z skitch <skitch@5b0c196eeb62> # add schemas/metaschema_public/tables/policy/table
22
+ schemas/metaschema_public/tables/primary_key_constraint/table [schemas/metaschema_public/schema schemas/metaschema_public/types/object_category] 2017-08-11T08:11:51Z skitch <skitch@5b0c196eeb62> # add schemas/metaschema_public/tables/primary_key_constraint/table
23
+ schemas/metaschema_public/tables/procedure/table [schemas/metaschema_public/schema schemas/metaschema_public/tables/database/table schemas/metaschema_public/types/object_category] 2017-08-11T08:11:51Z skitch <skitch@5b0c196eeb62> # add schemas/metaschema_public/tables/procedure/table
23
24
  schemas/metaschema_public/tables/rls_function/table [schemas/metaschema_public/schema schemas/metaschema_public/tables/database/table] 2017-08-11T08:11:51Z skitch <skitch@5b0c196eeb62> # add schemas/metaschema_public/tables/rls_function/table
24
25
  schemas/metaschema_public/tables/schema_grant/table [schemas/metaschema_public/schema schemas/metaschema_public/tables/schema/table] 2017-08-11T08:11:51Z skitch <skitch@5b0c196eeb62> # add schemas/metaschema_public/tables/schema_grant/table
25
26
  schemas/metaschema_public/tables/table_grant/table [schemas/metaschema_public/schema schemas/metaschema_public/tables/table/table] 2017-08-11T08:11:51Z skitch <skitch@5b0c196eeb62> # add schemas/metaschema_public/tables/table_grant/table
26
27
  schemas/metaschema_public/tables/table/indexes/databases_table_unique_name_idx [schemas/metaschema_public/schema schemas/metaschema_private/schema schemas/metaschema_public/tables/table/table] 2017-08-11T08:11:51Z skitch <skitch@5b0c196eeb62> # add schemas/metaschema_public/tables/table/indexes/databases_table_unique_name_idx
27
28
  schemas/metaschema_public/tables/trigger_function/table [schemas/metaschema_public/schema schemas/metaschema_public/tables/database/table] 2017-08-11T08:11:51Z skitch <skitch@5b0c196eeb62> # add schemas/metaschema_public/tables/trigger_function/table
28
- schemas/metaschema_public/tables/trigger/table [schemas/metaschema_public/schema schemas/metaschema_public/tables/table/table] 2017-08-11T08:11:51Z skitch <skitch@5b0c196eeb62> # add schemas/metaschema_public/tables/trigger/table
29
- schemas/metaschema_public/tables/unique_constraint/table [schemas/metaschema_public/schema schemas/metaschema_public/tables/database/table schemas/metaschema_public/tables/table/table] 2017-08-11T08:11:51Z skitch <skitch@5b0c196eeb62> # add schemas/metaschema_public/tables/unique_constraint/table
29
+ schemas/metaschema_public/tables/trigger/table [schemas/metaschema_public/schema schemas/metaschema_public/tables/table/table schemas/metaschema_public/types/object_category] 2017-08-11T08:11:51Z skitch <skitch@5b0c196eeb62> # add schemas/metaschema_public/tables/trigger/table
30
+ schemas/metaschema_public/tables/unique_constraint/table [schemas/metaschema_public/schema schemas/metaschema_public/tables/database/table schemas/metaschema_public/tables/table/table schemas/metaschema_public/types/object_category] 2017-08-11T08:11:51Z skitch <skitch@5b0c196eeb62> # add schemas/metaschema_public/tables/unique_constraint/table
@@ -4,6 +4,5 @@ BEGIN;
4
4
  DROP INDEX metaschema_public.field_database_id_idx;
5
5
  DROP INDEX metaschema_public.field_table_id_idx;
6
6
  DROP TABLE metaschema_public.field;
7
- DROP TYPE metaschema_public.field_category;
8
7
 
9
8
  COMMIT;
@@ -0,0 +1,7 @@
1
+ -- Revert schemas/metaschema_public/types/object_category from pg
2
+
3
+ BEGIN;
4
+
5
+ DROP TYPE IF EXISTS metaschema_public.object_category;
6
+
7
+ COMMIT;
@@ -0,0 +1,7 @@
1
+ -- Verify schemas/metaschema_public/types/object_category on pg
2
+
3
+ BEGIN;
4
+
5
+ SELECT 'core'::metaschema_public.object_category;
6
+
7
+ ROLLBACK;