mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-12 22:38:52 +00:00
[ticket/11621] Use effectively_installed() instead.
PHPBB3-11621
This commit is contained in:
parent
39f77149b2
commit
a30f1729d8
1 changed files with 6 additions and 5 deletions
|
@ -11,6 +11,12 @@ namespace phpbb\db\migration\data\v310;
|
||||||
|
|
||||||
class mysql_fulltext_drop extends \phpbb\db\migration\migration
|
class mysql_fulltext_drop extends \phpbb\db\migration\migration
|
||||||
{
|
{
|
||||||
|
public function effectively_installed()
|
||||||
|
{
|
||||||
|
// This migration is irrelevant for all non-MySQL DBMSes.
|
||||||
|
return strpos($this->db->sql_layer, 'mysql') === false;
|
||||||
|
}
|
||||||
|
|
||||||
static public function depends_on()
|
static public function depends_on()
|
||||||
{
|
{
|
||||||
return array(
|
return array(
|
||||||
|
@ -20,11 +26,6 @@ class mysql_fulltext_drop extends \phpbb\db\migration\migration
|
||||||
|
|
||||||
public function update_schema()
|
public function update_schema()
|
||||||
{
|
{
|
||||||
if (strpos($this->db->sql_layer, 'mysql') === false)
|
|
||||||
{
|
|
||||||
return array();
|
|
||||||
}
|
|
||||||
|
|
||||||
return array(
|
return array(
|
||||||
'drop_keys' => array(
|
'drop_keys' => array(
|
||||||
$this->table_prefix . 'posts' => array(
|
$this->table_prefix . 'posts' => array(
|
||||||
|
|
Loading…
Add table
Reference in a new issue