We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 880c1b9 commit 858eb64Copy full SHA for 858eb64
1 file changed
packages/data-types/types/deploy/schemas/public/domains/attachment.sql
@@ -2,16 +2,6 @@
2
-- requires: schemas/public/schema
3
4
BEGIN;
5
-CREATE DOMAIN attachment AS jsonb CHECK (
6
- (
7
- jsonb_typeof(VALUE) = 'object'
8
- AND VALUE ?& ARRAY['url', 'mime']
9
- AND VALUE->>'url' ~ '^(https?)://[^\s/$.?#].[^\s]*$'
10
- )
11
- OR (
12
- jsonb_typeof(VALUE) = 'string'
13
- AND VALUE #>> '{}' ~ '^(https?)://[^\s/$.?#].[^\s]*$'
14
15
-);
+CREATE DOMAIN attachment AS text CHECK (VALUE ~ '^(https?)://[^\s/$.?#].[^\s]*$');
16
COMMENT ON DOMAIN attachment IS E'@name launchqlInternalTypeAttachment';
17
COMMIT;
0 commit comments