Skip to content

Commit

Permalink
SQL Schema fixes to let first-time users get the correct admin access.
Browse files Browse the repository at this point in the history
  • Loading branch information
kobishmueli committed Apr 10, 2016
1 parent d83bfd5 commit b90918d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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);

0 comments on commit b90918d

Please sign in to comment.