diff --git a/phpBB/phpbb/db/migration/data/v330/storage_adapter_local_depth_rename.php b/phpBB/phpbb/db/migration/data/v330/storage_adapter_local_depth_rename.php deleted file mode 100644 index 295fae5584..0000000000 --- a/phpBB/phpbb/db/migration/data/v330/storage_adapter_local_depth_rename.php +++ /dev/null @@ -1,45 +0,0 @@ - -* @license GNU General Public License, version 2 (GPL-2.0) -* -* For full copyright and license information, please see -* the docs/CREDITS.txt file. -* -*/ - -namespace phpbb\db\migration\data\v330; - -class storage_adapter_local_depth_rename extends \phpbb\db\migration\migration -{ - static public function depends_on() - { - return array( - '\phpbb\db\migration\data\v330\storage_adapter_local_depth', - ); - } - - public function update_data() - { - return array( - array('if', array( - ($this->config['storage\\attachment\\provider'] == \phpbb\storage\provider\local::class), - array('config.delete', array('storage\\attachment\\config\\depth')), - array('config.add', array('storage\\attachment\\config\\subfolders', '0')), - )), - array('if', array( - ($this->config['storage\\avatar\\provider'] == \phpbb\storage\provider\local::class), - array('config.delete', array('storage\\avatar\\config\\depth')), - array('config.add', array('storage\\avatar\\config\\subfolders', '0')), - )), - array('if', array( - ($this->config['storage\\backup\\provider'] == \phpbb\storage\provider\local::class), - array('config.delete', array('storage\\backup\\config\\depth')), - array('config.add', array('storage\\backup\\config\\subfolders', '0')), - )), - ); - } -} diff --git a/phpBB/phpbb/db/migration/data/v330/storage_adapter_local_depth.php b/phpBB/phpbb/db/migration/data/v330/storage_adapter_local_subfolders.php similarity index 75% rename from phpBB/phpbb/db/migration/data/v330/storage_adapter_local_depth.php rename to phpBB/phpbb/db/migration/data/v330/storage_adapter_local_subfolders.php index 2da4c1954a..491388054c 100644 --- a/phpBB/phpbb/db/migration/data/v330/storage_adapter_local_depth.php +++ b/phpBB/phpbb/db/migration/data/v330/storage_adapter_local_subfolders.php @@ -13,7 +13,7 @@ namespace phpbb\db\migration\data\v330; -class storage_adapter_local_depth extends \phpbb\db\migration\migration +class storage_adapter_local_subfolders extends \phpbb\db\migration\migration { static public function depends_on() { @@ -29,15 +29,15 @@ class storage_adapter_local_depth extends \phpbb\db\migration\migration return array( array('if', array( ($this->config['storage\\attachment\\provider'] == \phpbb\storage\provider\local::class), - array('config.add', array('storage\\attachment\\config\\depth', '0')), + array('config.add', array('storage\\attachment\\config\\subfolders', '0')), )), array('if', array( ($this->config['storage\\avatar\\provider'] == \phpbb\storage\provider\local::class), - array('config.add', array('storage\\avatar\\config\\depth', '0')), + array('config.add', array('storage\\avatar\\config\\subfolders', '0')), )), array('if', array( ($this->config['storage\\backup\\provider'] == \phpbb\storage\provider\local::class), - array('config.add', array('storage\\backup\\config\\depth', '0')), + array('config.add', array('storage\\backup\\config\\subfolders', '0')), )), ); }