diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2022-05-05 19:43:23 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2022-05-05 19:43:23 +0200 |
commit | 3538009b53d9aadc31514ef72cb963c24c567bfb (patch) | |
tree | f1495627d01dc8fd61fe129cc8f3ea01d1e07360 /hosts/surtr | |
parent | a348ad9cd88d2ae87a879d72453bc6ace03a6590 (diff) | |
download | nixos-3538009b53d9aadc31514ef72cb963c24c567bfb.tar nixos-3538009b53d9aadc31514ef72cb963c24c567bfb.tar.gz nixos-3538009b53d9aadc31514ef72cb963c24c567bfb.tar.bz2 nixos-3538009b53d9aadc31514ef72cb963c24c567bfb.tar.xz nixos-3538009b53d9aadc31514ef72cb963c24c567bfb.zip |
...
Diffstat (limited to 'hosts/surtr')
-rw-r--r-- | hosts/surtr/postgresql.nix | 2 |
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(), |