aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/db
diff options
context:
space:
mode:
authorTristan Darricau <github@nicofuma.fr>2014-08-23 00:27:23 +0200
committerTristan Darricau <github@nicofuma.fr>2014-08-23 23:39:46 +0200
commit1a41632af86905e93280d3bcb51a9603b369f08f (patch)
tree0f93b9d8ee5d498c2d177eb14c339923bf4c363e /phpBB/phpbb/db
parentd2ed2c4e1e87a8cf84454d04190a44e78a832d04 (diff)
downloadforums-1a41632af86905e93280d3bcb51a9603b369f08f.tar
forums-1a41632af86905e93280d3bcb51a9603b369f08f.tar.gz
forums-1a41632af86905e93280d3bcb51a9603b369f08f.tar.bz2
forums-1a41632af86905e93280d3bcb51a9603b369f08f.tar.xz
forums-1a41632af86905e93280d3bcb51a9603b369f08f.zip
[ticket/12990] Disable all the notifications types which are not in the core
PHPBB3-12990
Diffstat (limited to 'phpBB/phpbb/db')
-rw-r--r--phpBB/phpbb/db/migration/data/v310/notifications_use_full_name.php5
1 files changed, 5 insertions, 0 deletions
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 . "