projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b1d73c
)
Admin is a system group - should not be deleted...
author
Alan Knowles
<alan@roojs.com>
Thu, 22 Jul 2021 04:59:55 +0000
(12:59 +0800)
committer
Alan Knowles
<alan@roojs.com>
Thu, 22 Jul 2021 04:59:55 +0000
(12:59 +0800)
sql/core_group.sql
patch
|
blob
|
history
diff --git
a/sql/core_group.sql
b/sql/core_group.sql
index
8e4cb19
..
57603e3
100644
(file)
--- 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