diff --git a/upgrade/php/ps_900_reorganize_aliases_tab.php b/upgrade/php/ps_900_reorganize_aliases_tab.php new file mode 100644 index 000000000..ae658a5c8 --- /dev/null +++ b/upgrade/php/ps_900_reorganize_aliases_tab.php @@ -0,0 +1,35 @@ + + * @copyright Since 2007 PrestaShop SA and Contributors + * @license https://opensource.org/licenses/AFL-3.0 Academic Free License version 3.0 + */ + +use PrestaShop\Module\AutoUpgrade\DbWrapper; + +/** + * @return void + * + * @throws \PrestaShop\Module\AutoUpgrade\Exceptions\UpdateDatabaseException + */ +function ps_900_reorganize_aliases() +{ + // Add new tab for aliases + add_new_tab_17('AdminAliases', 'en:Aliases', 0, false, 'Search'); + + // Delete the search configuration feature flag + DbWrapper::delete('feature_flag', '`name` = \'search_conf\''); +} diff --git a/upgrade/sql/9.0.0.sql b/upgrade/sql/9.0.0.sql index 0234bbad2..c227a5cc1 100644 --- a/upgrade/sql/9.0.0.sql +++ b/upgrade/sql/9.0.0.sql @@ -348,3 +348,7 @@ INSERT INTO `PREFIX_configuration` (`name`, `value`, `date_add`, `date_upd`) VAL ('PS_ADMIN_API_FORCE_DEBUG_SECURED', '1', NOW(), NOW()) ; /* PHP:install_ps_apiresources(); */; + +/* Reorganize search aliases */ +/* https://github.com/PrestaShop/PrestaShop/pull/37470 */ +/* PHP:ps_900_reorganize_aliases(); */