From e8d7c4b840eb347232b3e4ddcc72d3194e6b76ba Mon Sep 17 00:00:00 2001 From: nek0 Date: Sun, 19 Jul 2020 06:31:35 +0200 Subject: [PATCH] make role names unique --- src/Model/Role.hs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Model/Role.hs b/src/Model/Role.hs index 5accc66..60f0f02 100644 --- a/src/Model/Role.hs +++ b/src/Model/Role.hs @@ -35,6 +35,7 @@ initRole = mconcat , "role_can_manage_suppliers BOOLEAN NOT NULL," , "role_can_manage_settings BOOLEAN NOT NULL," , "PRIMARY KEY (role_id)" + , "UNIQUE (role_name)" , ")" ]