From bb60cd95333e3348722000ff2c517dfbc227607d Mon Sep 17 00:00:00 2001
From: Daniel Hornung <d.hornung@indiscale.com>
Date: Tue, 23 Feb 2021 13:46:33 +0100
Subject: [PATCH] FIX: Added a small fix for duplicates.

Actually I tested the behaviour with that fix, only forgot to add to file in repository.
---
 utils/make_db | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/utils/make_db b/utils/make_db
index 7345528..0aeb61f 100755
--- a/utils/make_db
+++ b/utils/make_db
@@ -234,7 +234,7 @@ function grant-permission() {
     fi
 
     cmd="INSERT INTO permissions (role, permissions) VALUE ('${role}', '${permissions}')"
-    cmd+="ON DUPLICATE KEY UPDATE role='${role}'"
+    cmd+="ON DUPLICATE KEY UPDATE role='${role}', permissions='${permissions}'"
     cmd+=";"
     $MYSQL_CMD $(get_mysql_args) -e "$cmd"
 }
-- 
GitLab