Skip to content

Commit

Permalink
Add new aliases tab and remove search_conf feature flag
Browse files Browse the repository at this point in the history
  • Loading branch information
boherm committed Mar 3, 2025
1 parent 54dc7bb commit d23dc09
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
35 changes: 35 additions & 0 deletions upgrade/php/ps_900_reorganize_aliases_tab.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<?php
/**
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License version 3.0
* that is bundled with this package in the file LICENSE.md.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/AFL-3.0
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to [email protected] so we can send you a copy immediately.
*
* @author PrestaShop SA and Contributors <[email protected]>
* @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\'');
}
4 changes: 4 additions & 0 deletions upgrade/sql/9.0.0.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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(); */

0 comments on commit d23dc09

Please sign in to comment.