mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
[ticket/17208] Ensure to not run the previous migration with missing column
PHPBB3-17208
This commit is contained in:
@@ -71,6 +71,12 @@ class profilefield_youtube_update extends \phpbb\db\migration\migration
|
||||
. $this->db->get_any_char()
|
||||
);
|
||||
|
||||
// We're done if the profile field doesn't exist
|
||||
if (!$this->db_tools->sql_column_exists($profile_fields_data, $yt_profile_field))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
$this->db->sql_query(
|
||||
"UPDATE $profile_fields_data SET
|
||||
$yt_profile_field = $prepend_legacy_youtube_url
|
||||
|
Reference in New Issue
Block a user