Ver Fonte

Modules updates.

AntonLV há 1 ano atrás
pai
commit
6b23e66733

+ 9 - 0
modules/boonex/ads/updates/14.0.6_15.0.0/install/sql/install.sql

@@ -17,3 +17,12 @@ INSERT INTO `sys_form_display_inputs`(`display_name`, `input_name`, `visible_for
 ('bx_ads_entry_price_year_edit', 'controls', 2147483647, 1, @iOrder+1),
 ('bx_ads_entry_price_year_edit', 'do_submit', 2147483647, 1, @iOrder+2),
 ('bx_ads_entry_price_year_edit', 'do_cancel', 2147483647, 1, @iOrder+3);
+
+DELETE FROM `sys_form_display_inputs` WHERE `display_name` IN ('bx_ads_entry_price_add', 'bx_ads_entry_price_edit', 'bx_ads_entry_price_year_add', 'bx_ads_entry_price_year_edit') AND `input_name`='seg_sex';
+DELETE FROM `sys_form_display_inputs` WHERE `display_name` IN ('bx_ads_entry_price_add', 'bx_ads_entry_price_edit', 'bx_ads_entry_price_year_add', 'bx_ads_entry_price_year_edit') AND `input_name`='seg_gender';
+INSERT INTO `sys_form_display_inputs`(`display_name`, `input_name`, `visible_for_levels`, `active`, `order`) VALUES 
+('bx_ads_entry_price_add', 'seg_gender', 2147483647, 1, 26),
+('bx_ads_entry_price_edit', 'seg_gender', 2147483647, 1, 23),
+
+('bx_ads_entry_price_year_add', 'seg_gender', 2147483647, 1, 27),
+('bx_ads_entry_price_year_edit', 'seg_gender', 2147483647, 1, 24);

+ 4 - 4
modules/boonex/ads/updates/14.0.6_15.0.0/source/install/sql/install.sql

@@ -893,7 +893,7 @@ INSERT INTO `sys_form_display_inputs`(`display_name`, `input_name`, `visible_for
 ('bx_ads_entry_price_add', 'location', 2147483647, 1, 23),
 ('bx_ads_entry_price_add', 'seg_header_beg', 2147483647, 1, 24),
 ('bx_ads_entry_price_add', 'seg', 2147483647, 1, 25),
-('bx_ads_entry_price_add', 'seg_sex', 2147483647, 1, 26),
+('bx_ads_entry_price_add', 'seg_gender', 2147483647, 1, 26),
 ('bx_ads_entry_price_add', 'seg_age', 2147483647, 1, 27),
 ('bx_ads_entry_price_add', 'seg_country', 2147483647, 1, 28),
 ('bx_ads_entry_price_add', 'seg_header_end', 2147483647, 1, 29),
@@ -921,7 +921,7 @@ INSERT INTO `sys_form_display_inputs`(`display_name`, `input_name`, `visible_for
 ('bx_ads_entry_price_edit', 'location', 2147483647, 1, 20),
 ('bx_ads_entry_price_edit', 'seg_header_beg', 2147483647, 1, 21),
 ('bx_ads_entry_price_edit', 'seg', 2147483647, 1, 22),
-('bx_ads_entry_price_edit', 'seg_sex', 2147483647, 1, 23),
+('bx_ads_entry_price_edit', 'seg_gender', 2147483647, 1, 23),
 ('bx_ads_entry_price_edit', 'seg_age', 2147483647, 1, 24),
 ('bx_ads_entry_price_edit', 'seg_country', 2147483647, 1, 25),
 ('bx_ads_entry_price_edit', 'seg_header_end', 2147483647, 1, 26),
@@ -961,7 +961,7 @@ INSERT INTO `sys_form_display_inputs`(`display_name`, `input_name`, `visible_for
 ('bx_ads_entry_price_year_add', 'location', 2147483647, 1, 24),
 ('bx_ads_entry_price_year_add', 'seg_header_beg', 2147483647, 1, 25),
 ('bx_ads_entry_price_year_add', 'seg', 2147483647, 1, 26),
-('bx_ads_entry_price_year_add', 'seg_sex', 2147483647, 1, 27),
+('bx_ads_entry_price_year_add', 'seg_gender', 2147483647, 1, 27),
 ('bx_ads_entry_price_year_add', 'seg_age', 2147483647, 1, 28),
 ('bx_ads_entry_price_year_add', 'seg_country', 2147483647, 1, 29),
 ('bx_ads_entry_price_year_add', 'seg_header_end', 2147483647, 1, 30),
@@ -990,7 +990,7 @@ INSERT INTO `sys_form_display_inputs`(`display_name`, `input_name`, `visible_for
 ('bx_ads_entry_price_year_edit', 'location', 2147483647, 1, 21),
 ('bx_ads_entry_price_year_edit', 'seg_header_beg', 2147483647, 1, 22),
 ('bx_ads_entry_price_year_edit', 'seg', 2147483647, 1, 23),
-('bx_ads_entry_price_year_edit', 'seg_sex', 2147483647, 1, 24),
+('bx_ads_entry_price_year_edit', 'seg_gender', 2147483647, 1, 24),
 ('bx_ads_entry_price_year_edit', 'seg_age', 2147483647, 1, 25),
 ('bx_ads_entry_price_year_edit', 'seg_country', 2147483647, 1, 26),
 ('bx_ads_entry_price_year_edit', 'seg_header_end', 2147483647, 1, 27),

+ 1 - 0
modules/boonex/courses/updates/14.0.4_15.0.0/install/installer.php

@@ -29,6 +29,7 @@ class BxCoursesUpdater extends BxDolStudioUpdater
                 $this->oDb->query("ALTER TABLE `bx_courses_prices` ADD `default` tinyint(4) NOT NULL default '0' AFTER `order`");
             if(!$this->oDb->isFieldExists('bx_courses_prices', 'active'))
                 $this->oDb->query("ALTER TABLE `bx_courses_prices` ADD `active` tinyint(4) NOT NULL default '1' AFTER `default`");
+        }
 
         return parent::actionExecuteSql($sOperation);
     }

+ 1 - 1
modules/boonex/events/updates/14.0.8_15.0.0/install/sql/enable.sql

@@ -43,7 +43,7 @@ INSERT INTO `sys_menu_items`(`set_name`, `module`, `name`, `title_system`, `titl
 
 UPDATE `sys_objects_menu` SET `title_public`='_bx_events_menu_title_public_submenu' WHERE `object`='bx_events_submenu';
 
-DELETE FROM `sys_menu_items` WHERE `set_name`='bx_groups_snippet_meta' AND `name` IN ('votes', 'reactions', 'scores');
+DELETE FROM `sys_menu_items` WHERE `set_name`='bx_events_snippet_meta' AND `name` IN ('votes', 'reactions', 'scores');
 INSERT INTO `sys_menu_items`(`set_name`, `module`, `name`, `title_system`, `title`, `link`, `onclick`, `target`, `icon`, `submenu_object`, `visible_for_levels`, `visibility_custom`, `active`, `copyable`, `editable`, `order`) VALUES
 ('bx_events_snippet_meta', 'bx_events', 'votes', '_sys_menu_item_title_system_sm_votes', '_sys_menu_item_title_sm_votes', '', '', '', '', '', 2147483647, '', 0, 0, 1, 16),
 ('bx_events_snippet_meta', 'bx_events', 'reactions', '_sys_menu_item_title_system_sm_reactions', '_sys_menu_item_title_sm_reactions', '', '', '', '', '', 2147483647, '', 0, 0, 1, 17),

+ 4 - 2
modules/boonex/invites/updates/14.0.5_15.0.0/install/installer.php

@@ -23,9 +23,11 @@ class BxInvUpdater extends BxDolStudioUpdater
             if(!$this->oDb->isFieldExists('bx_inv_invites', 'aj_params'))
                 $this->oDb->query("ALTER TABLE `bx_inv_invites` ADD `aj_params` varchar(255) NOT NULL default '' AFTER `aj_action`");
 
-            $this->oDb->query("UPDATE `bx_inv_invites` SET `aj_action`='redirect', `aj_params`=`redirect` WHERE `redirect`<>''");
-            if($this->oDb->isFieldExists('bx_inv_invites', 'redirect'))
+            if($this->oDb->isFieldExists('bx_inv_invites', 'redirect')) {
+                $this->oDb->query("UPDATE `bx_inv_invites` SET `aj_action`='redirect', `aj_params`=`redirect` WHERE `redirect`<>''");
+
                 $this->oDb->query("ALTER TABLE `bx_inv_invites` DROP COLUMN `redirect`");
+            }
         }
 
         return parent::actionExecuteSql($sOperation);

+ 2 - 0
modules/boonex/persons/updates/14.0.6_15.0.0/install/sql/install.sql

@@ -47,6 +47,8 @@ INSERT INTO `sys_form_inputs`(`object`, `module`, `name`, `value`, `values`, `ch
 ('bx_person', 'bx_persons', 'badge', 'a:1:{i:0;s:21:"bx_persons_badge_crop";}', 'a:1:{s:21:"bx_persons_badge_crop";s:24:"_sys_uploader_crop_title";}', 0, 'files', '_bx_persons_form_profile_input_sys_badge', '_bx_persons_form_profile_input_badge', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0, ''),
 ('bx_person', 'bx_persons', 'badge_link', '', '', 0, 'text', '_bx_persons_form_profile_input_sys_badge_link', '_bx_persons_form_profile_input_badge_link', '', 0, 0, 0, '', '', '', '', '', '', 'Xss', '', 1, 0, '');
 
+UPDATE `sys_form_inputs` SET `type`='datetime' WHERE `object`='bx_person' AND `name`='profile_last_active';
+
 DELETE FROM `sys_form_display_inputs` WHERE `display_name`='bx_person_edit' AND `input_name` IN ('controls', 'do_submit', 'do_cancel');
 SET @iOrder = (SELECT IFNULL(MAX(`order`), 0) FROM `sys_form_display_inputs` WHERE `display_name`='bx_person_edit');
 INSERT INTO `sys_form_display_inputs`(`display_name`, `input_name`, `visible_for_levels`, `active`, `order`) VALUES 

+ 1 - 1
modules/boonex/polls/updates/14.0.2_15.0.0/install/sql/enable.sql

@@ -1,2 +1,2 @@
--- MENUS
+-- PAGES
 UPDATE `sys_pages_blocks` SET `designbox_id`='13' WHERE `object`='bx_polls_view_entry' AND `title`='_bx_polls_page_block_title_entry_text_and_subentries';

+ 1 - 1
modules/boonex/shopify/updates/13.0.4_15.0.0/install/config.php

@@ -10,7 +10,7 @@ $aConfig = array(
      */
     'title' => 'Shopify',
     'version_from' => '13.0.4',
-    'version_to' => '13.0.5',
+    'version_to' => '15.0.0',
     'vendor' => 'UNA INC',
 
     'compatible_with' => array(