mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-27 04:18:55 +00:00
[feature/bbcode-icon-name] Update migration to use bbcode font icon
PHPBB3-17326
This commit is contained in:
parent
e4394c0859
commit
af0e666be8
1 changed files with 4 additions and 4 deletions
|
@ -13,11 +13,11 @@
|
||||||
|
|
||||||
namespace phpbb\db\migration\data\v33x;
|
namespace phpbb\db\migration\data\v33x;
|
||||||
|
|
||||||
class add_bbcode_icon_name extends \phpbb\db\migration\migration
|
class add_bbcode_font_icon extends \phpbb\db\migration\migration
|
||||||
{
|
{
|
||||||
public function effectively_installed()
|
public function effectively_installed()
|
||||||
{
|
{
|
||||||
return $this->db_tools->sql_column_exists($this->table_prefix . 'bbcodes', 'bbcode_icon_name');
|
return $this->db_tools->sql_column_exists($this->table_prefix . 'bbcodes', 'bbcode_font_icon');
|
||||||
}
|
}
|
||||||
|
|
||||||
static public function depends_on()
|
static public function depends_on()
|
||||||
|
@ -32,7 +32,7 @@ class add_bbcode_icon_name extends \phpbb\db\migration\migration
|
||||||
return [
|
return [
|
||||||
'add_columns' => [
|
'add_columns' => [
|
||||||
$this->table_prefix . 'bbcodes' => [
|
$this->table_prefix . 'bbcodes' => [
|
||||||
'bbcode_icon_name' => ['VCHAR_UNI:255', ''],
|
'bbcode_font_icon' => ['VCHAR_UNI:255', ''],
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
@ -43,7 +43,7 @@ class add_bbcode_icon_name extends \phpbb\db\migration\migration
|
||||||
return [
|
return [
|
||||||
'drop_columns' => [
|
'drop_columns' => [
|
||||||
$this->table_prefix . 'bbcodes' => [
|
$this->table_prefix . 'bbcodes' => [
|
||||||
'bbcode_icon_name',
|
'bbcode_font_icon',
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
];
|
];
|
Loading…
Add table
Reference in a new issue