Code: Select all
<?php
/**
*
* phpBB Extension - toxyy Anonymous Posts
* @copyright (c) 2018 toxyy <[email protected]>
* @license GNU General Public License, version 2 (GPL-2.0)
*
*/
namespace toxyy\anonymousposts\migrations;
class v_0_6_0 extends \phpbb\db\migration\migration
{
public function effectively_installed()
{
return isset($this->config['anonymous_posts']);
}
static public function depends_on()
{
return array('\toxyy\anonymousposts\migrations\v_0_5_0');
}
public function update_schema()
{
return array(
'add_columns' => array(
$this->table_prefix . 'posts' => array(
'anonymous_index' => array('UINT', 0),
),
),
);
}
public function revert_schema()
{
return array(
'drop_columns' => array(
$this->table_prefix . 'posts' => array(
'anonymous_index',
),
),
);
}
}
array('BOOL', 0)
like in my first migration and that didn't work, and I've deleted the data as well.What's wrong here? I found a solution in another thread to use update_data, but I don't want to make a habit out of doing that, I must be doing something wrong. I don't have anything in any of my log files suggesting an error.