database: add wt_public_id domain type (#30)

This commit is contained in:
Michael Gaffney authored and GitHub committed 2020-05-06 08:29:13 -04:00
1 parent 05330db741
commit 8824a6f7f9
5 files changed
+143

No files matched your search

@@ -0,0 +1,5 @@
begin;
drop domain wt_public_id;
commit;
@@ -0,0 +1,10 @@
begin;
create domain wt_public_id as text
check(
length(trim(value)) > 31
);
comment on domain wt_public_id is
'Random ID generated with github.com/hashicorp/vault/sdk/helper/base62';
commit;