From 853a8f0ff40d27e7026576130678915b946e01c4 Mon Sep 17 00:00:00 2001 From: Christopher Usher Date: Thu, 31 Oct 2024 19:04:07 -0700 Subject: [PATCH] Fixed SQL bug in the roles table --- postgres/schema.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/postgres/schema.sql b/postgres/schema.sql index aff6d20..abc331e 100644 --- a/postgres/schema.sql +++ b/postgres/schema.sql @@ -132,7 +132,7 @@ CREATE TABLE nodes ( CREATE TABLE roles ( -- email should always be lowercase since that's how the auth function compares it - email TEXT PRIMARY KEY CHECK email = lower(email), + email TEXT PRIMARY KEY CHECK (email = lower(email)), name TEXT NOT NULL, editor BOOLEAN NOT NULL DEFAULT FALSE, artist BOOLEAN NOT NULL DEFAULT FALSE