summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2022-05-05 19:43:23 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2022-05-05 19:43:23 +0200
commit3538009b53d9aadc31514ef72cb963c24c567bfb (patch)
treef1495627d01dc8fd61fe129cc8f3ea01d1e07360
parenta348ad9cd88d2ae87a879d72453bc6ace03a6590 (diff)
downloadnixos-3538009b53d9aadc31514ef72cb963c24c567bfb.tar
nixos-3538009b53d9aadc31514ef72cb963c24c567bfb.tar.gz
nixos-3538009b53d9aadc31514ef72cb963c24c567bfb.tar.bz2
nixos-3538009b53d9aadc31514ef72cb963c24c567bfb.tar.xz
nixos-3538009b53d9aadc31514ef72cb963c24c567bfb.zip
...
-rw-r--r--hosts/surtr/postgresql.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/hosts/surtr/postgresql.nix b/hosts/surtr/postgresql.nix
index e3384fbd..4ce2342c 100644
--- a/hosts/surtr/postgresql.nix
+++ b/hosts/surtr/postgresql.nix
@@ -34,7 +34,7 @@ in {
34 id uuid PRIMARY KEY NOT NULL DEFAULT gen_random_uuid(), 34 id uuid PRIMARY KEY NOT NULL DEFAULT gen_random_uuid(),
35 mailbox text NOT NULL CONSTRAINT mailbox_non_empty CHECK (mailbox <> '''), 35 mailbox text NOT NULL CONSTRAINT mailbox_non_empty CHECK (mailbox <> '''),
36 quota_bytes bigint CONSTRAINT quota_bytes_positive CHECK (CASE WHEN quota_bytes IS NOT NULL THEN quota_bytes > 0 ELSE true END), 36 quota_bytes bigint CONSTRAINT quota_bytes_positive CHECK (CASE WHEN quota_bytes IS NOT NULL THEN quota_bytes > 0 ELSE true END),
37 CONSTRAINT mailbox_unique UNIQUE mailbox 37 CONSTRAINT mailbox_unique UNIQUE (mailbox)
38 ); 38 );
39 CREATE TABLE mailbox_mapping ( 39 CREATE TABLE mailbox_mapping (
40 id uuid PRIMARY KEY NOT NULL DEFAULT gen_random_uuid(), 40 id uuid PRIMARY KEY NOT NULL DEFAULT gen_random_uuid(),