From 0aa8ad9a7cc8581269cb5d5b44827951ee2369c3 Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Thu, 29 Mar 2018 22:27:51 -0500 Subject: [PATCH] Make user id unique --- config/sql/users.sql | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/sql/users.sql b/config/sql/users.sql index dde3b924f..e46cd744b 100644 --- a/config/sql/users.sql +++ b/config/sql/users.sql @@ -7,7 +7,8 @@ CREATE TABLE public.users id text COLLATE pg_catalog."default" NOT NULL, updated timestamp with time zone, notifications integer, - subscriptions text[] COLLATE pg_catalog."default" + subscriptions text[] COLLATE pg_catalog."default", + CONSTRAINT users_id_key UNIQUE (id) ) WITH ( OIDS = FALSE