From ebc534f55a81005b687dbef2ad30f1a284df4e7e Mon Sep 17 00:00:00 2001 From: Christopher Usher Date: Tue, 8 Oct 2024 13:02:04 -0700 Subject: [PATCH] convert editors table to roles table --- postgres/schema.sql | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/postgres/schema.sql b/postgres/schema.sql index 23d1357..bd22c9d 100644 --- a/postgres/schema.sql +++ b/postgres/schema.sql @@ -122,9 +122,11 @@ CREATE TABLE nodes ( backfill_from BOOLEAN NOT NULL DEFAULT TRUE ); -CREATE TABLE editors ( +CREATE TABLE roles ( email TEXT PRIMARY KEY, - name TEXT NOT NULL + name TEXT NOT NULL, + editor BOOLEAN NOT NULL DEFAULT FALSE, + artist BOOLEAN NOT NULL DEFAULT FALSE ); -- A slight misnomer, this is all rows of the tags sheet.