install.sql 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. -- TABLE: types of categories
  2. CREATE TABLE IF NOT EXISTS `bx_editor_toolbar_buttons` (
  3. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  4. `active` tinyint(4) NOT NULL default '0',
  5. `order` tinyint(4) NOT NULL default '0',
  6. `name` varchar(64) NOT NULL DEFAULT '',
  7. `mode` varchar(10) NOT NULL DEFAULT '',
  8. `inline` tinyint(4) NOT NULL default '0',
  9. PRIMARY KEY (`id`)
  10. );
  11. INSERT INTO `bx_editor_toolbar_buttons`(`active`, `order`, `name`, `mode`, `inline`) VALUES
  12. (1, 0, 'bold', 'full', 0),
  13. (1, 1, 'italic', 'full', 0),
  14. (1, 2, 'link', 'full', 0),
  15. (1, 3, 'marker', 'full', 0),
  16. (1, 4, 'inlineCode', 'full', 0),
  17. (1, 5, 'header', 'full', 1),
  18. (1, 6, 'list', 'full', 1),
  19. (1, 7, 'image', 'full', 1),
  20. (1, 8, 'embed', 'full', 1),
  21. (1, 9, 'code', 'full', 1),
  22. (1, 10, 'delimiter', 'full', 1),
  23. (1, 0, 'bold', 'standard', 0),
  24. (1, 1, 'italic', 'standard', 0),
  25. (1, 2, 'link', 'standard', 0),
  26. (0, 3, 'marker', 'standard', 0),
  27. (0, 4, 'inlineCode', 'standard', 0),
  28. (1, 5, 'header', 'standard', 1),
  29. (1, 6, 'list', 'standard', 1),
  30. (1, 7, 'image', 'standard', 1),
  31. (1, 8, 'embed', 'standard', 1),
  32. (0, 9, 'code', 'standard', 1),
  33. (0, 10, 'delimiter', 'standard', 1),
  34. (1, 0, 'bold', 'mini', 0),
  35. (1, 1, 'italic', 'mini', 0),
  36. (1, 2, 'link', 'mini', 0),
  37. (0, 3, 'marker', 'mini', 0),
  38. (0, 4, 'inlineCode', 'mini', 0),
  39. (0, 5, 'header', 'mini', 1),
  40. (0, 6, 'list', 'mini', 1),
  41. (0, 7, 'image', 'mini', 1),
  42. (0, 8, 'embed', 'mini', 1),
  43. (0, 9, 'code', 'mini', 1),
  44. (0, 10, 'delimiter', 'mini', 1);
  45. -- Studio page and widget
  46. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  47. (3, 'bx_editor', '_bx_editor', '_bx_editor', 'bx_editor@modules/boonex/editor/|std-icon.svg');
  48. SET @iPageId = LAST_INSERT_ID();
  49. SET @iParentPageId = (SELECT `id` FROM `sys_std_pages` WHERE `name` = 'home');
  50. SET @iParentPageOrder = (SELECT MAX(`order`) FROM `sys_std_pages_widgets` WHERE `page_id` = @iParentPageId);
  51. INSERT INTO `sys_std_widgets` (`page_id`, `module`, `type`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`) VALUES
  52. (@iPageId, 'bx_editor', 'integrations', '{url_studio}module.php?name=bx_editor', '', 'bx_editor@modules/boonex/editor/|std-icon.svg', '_bx_editor', '', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:11:"get_actions";s:6:"params";a:0:{}s:5:"class";s:18:"TemplStudioModules";}');
  53. INSERT INTO `sys_std_pages_widgets` (`page_id`, `widget_id`, `order`) VALUES
  54. (@iParentPageId, LAST_INSERT_ID(), IF(ISNULL(@iParentPageOrder), 1, @iParentPageOrder + 1));