24 lines
554 B
PHP
Executable file
24 lines
554 B
PHP
Executable file
<?php
|
|
|
|
namespace pedodev\tagging\migrations;
|
|
|
|
class dev_3 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_list_filepath = "{$phpbb_root_path}/ext/pedodev/tagging/taglist.json";
|
|
|
|
if (!file_exists($tag_list_filepath)) {
|
|
touch($tag_list_filepath);
|
|
chmod($tag_list_filepath, 0644);
|
|
}
|
|
|
|
return [];
|
|
}
|
|
}
|