install.sql 1.2 KB

12345678910111213141516
  1. -- Logs Objects
  2. INSERT INTO `sys_objects_logs` (`object`, `module`, `logs_storage`, `title`, `active`, `class_name`, `class_file`) VALUES
  3. ('bx_profiler', 'bx_profiler', 'Auto', '_bx_profiler_log', 1, '', '');
  4. -- Studio page and widget.
  5. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  6. (3, 'bx_profiler', '_bx_profiler', '_bx_profiler', 'bx_profiler@modules/boonex/profiler/|std-icon.svg');
  7. SET @iPageId = LAST_INSERT_ID();
  8. SET @iParentPageId = (SELECT `id` FROM `sys_std_pages` WHERE `name` = 'home');
  9. SET @iParentPageOrder = (SELECT MAX(`order`) FROM `sys_std_pages_widgets` WHERE `page_id` = @iParentPageId);
  10. INSERT INTO `sys_std_widgets` (`page_id`, `module`, `type`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`) VALUES
  11. (@iPageId, 'bx_profiler', 'extensions', '{url_studio}module.php?name=bx_profiler', '', 'bx_profiler@modules/boonex/profiler/|std-icon.svg', '_bx_profiler', '', '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";}');
  12. INSERT INTO `sys_std_pages_widgets` (`page_id`, `widget_id`, `order`) VALUES
  13. (@iParentPageId, LAST_INSERT_ID(), IF(ISNULL(@iParentPageOrder), 1, @iParentPageOrder + 1));