From 34fba80d7f2afa776304d4aec72cc66af39f9b71 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Thu, 22 Jul 2021 12:59:55 +0800 Subject: [PATCH] Admin is a system group - should not be deleted... --- sql/core_group.sql | 1 + 1 file changed, 1 insertion(+) diff --git a/sql/core_group.sql b/sql/core_group.sql index 8e4cb19f..57603e3e 100644 --- a/sql/core_group.sql +++ b/sql/core_group.sql @@ -15,5 +15,6 @@ ALTER TABLE core_group ADD COLUMN leader int(11) NOT NULL default 0; ALTER TABLE core_group ADD COLUMN is_system int(2) NOT NULL default 0; UPDATE core_group SET display_name = name WHERE display_name = ''; +UPDATE core_group SET is_system = 1 WHERE name = 'Administrators'; ALTER TABLE core_group ADD INDEX lookup_leader (leader); \ No newline at end of file -- 2.39.2