Code: Select all
public function update_data()
{
return [
['permission.add', ['u_user_custom_title']],
// 0 = before rank, 1 = replaces rank, 2 = after rank
['config.add', ['customusertitle_location', 0]],
];
}
Code: Select all
public function update_data()
{
return [
['permission.add', ['u_user_custom_title']],
// 0 = before rank, 1 = replaces rank, 2 = after rank
['config.add', ['customusertitle_location', 1]],
];
}
Code: Select all
* Initial schema changes needed for Extension installation
*/
class m1_initial_schema extends \phpbb\db\migration\migration
{
/**
* @inheritdoc
*/
public function update_schema()
{
return [
'add_columns' => [
$this->table_prefix . 'users' => [
'user_custom_title' => ['VCHAR:255', ''],
],
],
];
}
Code: Select all
varchar(35) utf8_bin