-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SQL Schema fixes to let first-time users get the correct admin access.
- Loading branch information
1 parent
d83bfd5
commit b90918d
Showing
1 changed file
with
4 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -304,3 +304,7 @@ INSERT INTO `karnaf_statuses` VALUES (4,'Held - Possible spam',0); | |
INSERT INTO `karnaf_statuses` VALUES (5,'Spam',1); | ||
|
||
INSERT INTO `users` VALUES (1,'admin','098f6bcd4621d373cade4e832627b4f6','[email protected]','',1426820239,1427066785,'',80,0,0,'127.0.0.1',0,'','','','System Administrator'); | ||
|
||
INSERT INTO groups(name,gdesc,iskarnaf) VALUES('karnaf-admins', 'Karnaf Admins', 1); | ||
INSERT INTO groups(name,gdesc,iskarnaf) VALUES('karnaf-opers', 'Karnaf Operators', 1); | ||
INSERT INTO group_members(group_id,user_id,level) VALUES((SELECT id FROM groups WHERE name='karnaf-admins'), (SELECT id FROM users WHERE user='admin'), 30); |