data.sql 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. INSERT INTO `permissions` (`name`) VALUES
  2. ('*'),
  3. ('project.read'),
  4. ('project.update'),
  5. ('project.create'),
  6. ('project.delete'),
  7. ('issue.read'),
  8. ('issue.update'),
  9. ('issue.create'),
  10. ('issue.delete'),
  11. ('user.read'),
  12. ('user.update'),
  13. ('user.create'),
  14. ('user.delete'),
  15. ('message.read'),
  16. ('message.update'),
  17. ('message.create'),
  18. ('message.delete'),
  19. ('priority.read'),
  20. ('priority.update'),
  21. ('priority.create'),
  22. ('priority.delete'),
  23. ('session.read'),
  24. ('session.update'),
  25. ('session.create'),
  26. ('session.delete'),
  27. ('issue.role.read'),
  28. ('issue.role.update'),
  29. ('issue.role.create'),
  30. ('issue.role.delete'),
  31. ('project.role.read'),
  32. ('project.role.update'),
  33. ('project.role.create'),
  34. ('project.role.delete'),
  35. ('email.read'),
  36. ('email.update'),
  37. ('email.create'),
  38. ('email.delete');
  39. INSERT INTO `issue_roles` (`name`) VALUES
  40. ('Developer'),
  41. ('Tester'),
  42. ('Contact');
  43. INSERT INTO `r_issue_role_permission` (`r_id`,`per_id`) VALUES
  44. (issue_role('Developer'),permission('issue.read')),
  45. (issue_role('Developer'),permission('issue.update')),
  46. (issue_role('Tester'),permission('issue.read')),
  47. (issue_role('Tester'),permission('issue.update')),
  48. (issue_role('Contact'),permission('issue.read'));
  49. INSERT INTO `project_roles` (`name`) VALUES
  50. ('Project Manager'),
  51. ('Developer'),
  52. ('Tester');
  53. INSERT INTO `r_project_role_permission` (`r_id`,`per_id`) VALUES
  54. (project_role('Project Manager'),permission('issue.read')),
  55. (project_role('Project Manager'),permission('issue.create')),
  56. (project_role('Project Manager'),permission('issue.delete')),
  57. (project_role('Project Manager'),permission('project.read')),
  58. (project_role('Project Manager'),permission('project.update')),
  59. (project_role('Project Manager'),permission('project.delete')),
  60. (project_role('Developer'),permission('issue.create')),
  61. (project_role('Developer'),permission('project.read')),
  62. (project_role('Tester'),permission('project.read'));
  63. INSERT INTO `priorities` (`name`) VALUES
  64. ('Critical'),
  65. ('High'),
  66. ('Medium'),
  67. ('Low');
  68. INSERT INTO `settings` (`name`, `value`) VALUES
  69. ('issue.default.priority', '4'),
  70. ('issue.default.status', '1'),
  71. ('project.default.status', '1'),
  72. ('admin.email', 'bugs@localhost'),
  73. ('url.host', 'localhost'),
  74. ('url.base', '/bugs/');
  75. INSERT INTO `statuses` (`id`, `name`, `open`) VALUES
  76. (1, 'New', 1),
  77. (2, 'In Progress', 1),
  78. (3, 'On Hold', 1),
  79. (4, 'Completed', 0),
  80. (5, 'Cancelled', 0);