From a30f1729d8cb36d9d52167c08a139c99c63c4fdf Mon Sep 17 00:00:00 2001
From: Andreas Fischer <bantu@phpbb.com>
Date: Fri, 11 Oct 2013 14:09:29 +0200
Subject: [ticket/11621] Use effectively_installed() instead.

PHPBB3-11621
---
 phpBB/phpbb/db/migration/data/v310/mysql_fulltext_drop.php | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

(limited to 'phpBB/phpbb/db')

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(
-- 
cgit v1.2.1