From 592dcbc70615e2c68ef75d287f402695c68358fc Mon Sep 17 00:00:00 2001 From: Nikolaos Laskaris Date: Thu, 12 Oct 2017 17:17:34 +0200 Subject: [PATCH] Minor change --- dmp-db-scema/DataManagementPlanDB.sql | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/dmp-db-scema/DataManagementPlanDB.sql b/dmp-db-scema/DataManagementPlanDB.sql index 6cee82d02..9a97eae62 100644 --- a/dmp-db-scema/DataManagementPlanDB.sql +++ b/dmp-db-scema/DataManagementPlanDB.sql @@ -447,7 +447,6 @@ ALTER TABLE ONLY "DatasetService" ADD CONSTRAINT "DatasetServiceServiceReference" FOREIGN KEY ("Service") REFERENCES "Service"("ID"); - DROP table if exists "UserInfo"; CREATE TABLE "UserInfo" ( @@ -472,10 +471,10 @@ COMMENT ON COLUMN "UserInfo"."usertype" IS 'This stores the type of user: 0 -> i DROP table if exists "UserAuth"; CREATE TABLE "UserAuth" ( - "id" uuid DEFAULT uuid_generate_v4() NOT NULL, + "id" uuid DEFAULT uuid_generate_v4() NOT NULL UNIQUE, "username" character varying(200) NOT NULL, "password" character varying(250) NOT NULL, - PRIMARY KEY (id) + PRIMARY KEY (username) ); CREATE INDEX idx_userauth_username ON "UserAuth"(username);