From 75ed02fc2adca452f61882c5854c6e83bf746a85 Mon Sep 17 00:00:00 2001
From: Timm Fitschen <timm.fitschen@ds.mpg.de>
Date: Wed, 28 Nov 2018 14:34:27 +0100
Subject: [PATCH] ENH: Add standard anonymous user

---
 patches/patch20181119-2.1.0/patch.sh | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/patches/patch20181119-2.1.0/patch.sh b/patches/patch20181119-2.1.0/patch.sh
index e32a9da..7315ff4 100755
--- a/patches/patch20181119-2.1.0/patch.sh
+++ b/patches/patch20181119-2.1.0/patch.sh
@@ -21,7 +21,7 @@
 #
 # ** end header
 #
-# new insertEntity procedure
+# new insertEntity procedure, new anonymous role
 # Update mysql schema to version v2.1.0
 NEW_VERSION="v2.1.0"
 OLD_VERSION="v2.0.31"
@@ -35,6 +35,8 @@ fi
 
 check_version $OLD_VERSION
 
+mysql_execute "INSERT INTO roles (name, description) VALUES ('anonymous', 'Users who did not authenticate themselves.');"
+
 update_version $NEW_VERSION
 
 success
-- 
GitLab