enable.sql 970 B

123456789101112131415161718
  1. SET @sName = 'bx_acl';
  2. -- SETTINGS
  3. DELETE FROM `sys_options_types` WHERE `name`=@sName;
  4. SET @iTypeOrder = (SELECT MAX(`order`) FROM `sys_options_types` WHERE `group` = 'modules');
  5. INSERT INTO `sys_options_types`(`group`, `name`, `caption`, `icon`, `order`) VALUES
  6. ('modules', @sName, '_bx_acl', 'bx_acl@modules/boonex/acl/|std-icon.svg', IF(ISNULL(@iTypeOrder), 1, @iTypeOrder + 1));
  7. SET @iTypeId = LAST_INSERT_ID();
  8. DELETE FROM `sys_options_categories` WHERE `name`=@sName;
  9. INSERT INTO `sys_options_categories` (`type_id`, `name`, `caption`, `order`)
  10. VALUES (@iTypeId, @sName, '_bx_acl', 1);
  11. SET @iCategId = LAST_INSERT_ID();
  12. DELETE FROM `sys_options` WHERE `name`='bx_acl_recurring_reserve';
  13. INSERT INTO `sys_options` (`name`, `value`, `category_id`, `caption`, `type`, `check`, `check_params`, `check_error`, `extra`, `order`) VALUES
  14. ('bx_acl_recurring_reserve', '2', @iCategId, '_bx_acl_option_recurring_reserve', 'digit', '', '', '', '', 1);