From 1a41632af86905e93280d3bcb51a9603b369f08f Mon Sep 17 00:00:00 2001 From: Tristan Darricau Date: Sat, 23 Aug 2014 00:27:23 +0200 Subject: [ticket/12990] Disable all the notifications types which are not in the core PHPBB3-12990 --- phpBB/phpbb/db/migration/data/v310/notifications_use_full_name.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'phpBB/phpbb/db') diff --git a/phpBB/phpbb/db/migration/data/v310/notifications_use_full_name.php b/phpBB/phpbb/db/migration/data/v310/notifications_use_full_name.php index 30168f4b0b..f749b32119 100644 --- a/phpBB/phpbb/db/migration/data/v310/notifications_use_full_name.php +++ b/phpBB/phpbb/db/migration/data/v310/notifications_use_full_name.php @@ -85,6 +85,11 @@ class notifications_use_full_name extends \phpbb\db\migration\migration public function update_notifications_name() { + $sql = 'UPDATE ' . NOTIFICATION_TYPES_TABLE . ' + SET notification_type_enabled = 0 + WHERE ' . $this->db->sql_in_set('notification_type_name', $this->notification_types, true); + $this->db->sql_query($sql); + foreach ($this->notification_types as $notification_type) { $sql = 'UPDATE ' . NOTIFICATION_TYPES_TABLE . " -- cgit v1.2.1