diff options
author | Andreas Fischer <bantu@phpbb.com> | 2013-10-11 14:09:29 +0200 |
---|---|---|
committer | Andreas Fischer <bantu@phpbb.com> | 2013-10-11 14:09:29 +0200 |
commit | a30f1729d8cb36d9d52167c08a139c99c63c4fdf (patch) | |
tree | 47ed0a315b9055a5b0ddb04525d8743dfa3ca4f4 /phpBB/phpbb/db | |
parent | 39f77149b2922224bc1a9d741357bf54abec49d9 (diff) | |
download | forums-a30f1729d8cb36d9d52167c08a139c99c63c4fdf.tar forums-a30f1729d8cb36d9d52167c08a139c99c63c4fdf.tar.gz forums-a30f1729d8cb36d9d52167c08a139c99c63c4fdf.tar.bz2 forums-a30f1729d8cb36d9d52167c08a139c99c63c4fdf.tar.xz forums-a30f1729d8cb36d9d52167c08a139c99c63c4fdf.zip |
[ticket/11621] Use effectively_installed() instead.
PHPBB3-11621
Diffstat (limited to 'phpBB/phpbb/db')
-rw-r--r-- | phpBB/phpbb/db/migration/data/v310/mysql_fulltext_drop.php | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/phpBB/phpbb/db/migration/data/v310/mysql_fulltext_drop.php b/phpBB/phpbb/db/migration/data/v310/mysql_fulltext_drop.php index 2bb64bdef4..13db2f2a40 100644 --- a/phpBB/phpbb/db/migration/data/v310/mysql_fulltext_drop.php +++ b/phpBB/phpbb/db/migration/data/v310/mysql_fulltext_drop.php @@ -11,6 +11,12 @@ namespace phpbb\db\migration\data\v310; 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() { return array( @@ -20,11 +26,6 @@ class mysql_fulltext_drop extends \phpbb\db\migration\migration public function update_schema() { - if (strpos($this->db->sql_layer, 'mysql') === false) - { - return array(); - } - return array( 'drop_keys' => array( $this->table_prefix . 'posts' => array( |