@pgpm/types 0.8.0 → 0.9.0

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.
@@ -0,0 +1,10 @@
1
+ -- Deploy schemas/public/domains/origin to pg
2
+
3
+ -- requires: schemas/public/schema
4
+
5
+ BEGIN;
6
+
7
+ CREATE DOMAIN origin AS text CHECK (VALUE = substring(VALUE from '^(https?://[^/]*)') );
8
+ COMMENT ON DOMAIN origin IS E'@name launchqlInternalTypeOrigin';
9
+
10
+ COMMIT;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pgpm/types",
3
- "version": "0.8.0",
3
+ "version": "0.9.0",
4
4
  "description": "Core PostgreSQL data types with deploy/verify/revert SQL scripts",
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/verify": "0.8.0"
24
+ "@pgpm/verify": "0.9.0"
25
25
  },
26
26
  "devDependencies": {
27
27
  "pgpm": "^0.2.0"
@@ -34,5 +34,5 @@
34
34
  "bugs": {
35
35
  "url": "https://github.com/launchql/pgpm-modules/issues"
36
36
  },
37
- "gitHead": "76daa8923128fd8f93a8fd5303239ec998c0bf98"
37
+ "gitHead": "7cb34c75176e820a490de0442814425303a3ab1f"
38
38
  }
@@ -0,0 +1,7 @@
1
+ -- Revert schemas/public/domains/origin from pg
2
+
3
+ BEGIN;
4
+
5
+ DROP TYPE public.origin;
6
+
7
+ COMMIT;
@@ -0,0 +1,7 @@
1
+ -- Verify schemas/public/domains/origin on pg
2
+
3
+ BEGIN;
4
+
5
+ SELECT verify_type ('public.origin');
6
+
7
+ ROLLBACK;