23 lines
531 B
PHP
Executable file
23 lines
531 B
PHP
Executable file
<?php
|
|
|
|
namespace pedodev\tagging\migrations;
|
|
|
|
class dev_2 extends \phpbb\db\migration\migration
|
|
{
|
|
static public function depends_on()
|
|
{
|
|
return ['\phpbb\db\migration\data\v330\v330'];
|
|
}
|
|
|
|
public function update_data()
|
|
{
|
|
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : '../';
|
|
$tag_directory_filepath = "{$phpbb_root_path}/ext/pedodev/tagging/taglist";
|
|
|
|
if (!file_exists($tag_directory_filepath)) {
|
|
mkdir($tag_directory_filepath, 0644);
|
|
}
|
|
|
|
return [];
|
|
}
|
|
}
|