From e56088f921d9a2bc8ba50102bc28bd3e397294c8 Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Sun, 30 Aug 2020 22:14:56 +0200 Subject: [PATCH] [ticket/15594] Adjust depends_on and add effectively_installed check PHPBB3-15594 --- .../db/migration/data/v33x/remove_profilefield_aol.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/phpBB/phpbb/db/migration/data/v33x/remove_profilefield_aol.php b/phpBB/phpbb/db/migration/data/v33x/remove_profilefield_aol.php index 3ae4ef9956..207c4efe3f 100644 --- a/phpBB/phpbb/db/migration/data/v33x/remove_profilefield_aol.php +++ b/phpBB/phpbb/db/migration/data/v33x/remove_profilefield_aol.php @@ -15,10 +15,15 @@ namespace phpbb\db\migration\data\v400; class remove_profilefield_aol extends \phpbb\db\migration\migration { + public function effectively_installed() + { + return !$this->db_tools->sql_column_exists($this->table_prefix . 'profile_fields_data', 'pf_phpbb_aol'); + } + static public function depends_on() { return [ - '\phpbb\db\migration\data\v400\v400', + '\phpbb\db\migration\data\v33x\v331', ]; }