aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/db/migration/data/310/notifications.php
diff options
context:
space:
mode:
authorNathan Guse <nathaniel.guse@gmail.com>2013-07-13 22:47:41 -0700
committerNathan Guse <nathaniel.guse@gmail.com>2013-07-13 22:47:41 -0700
commit1e37d97909ccf52b08e2a809ea8a9365c824d8de (patch)
treea260c846cb47713e72de11cfb9803d981ea6faaf /phpBB/includes/db/migration/data/310/notifications.php
parent4186c05bb4b97374392031a10b796e77b857afaf (diff)
parent7030578bbe9e11c18b5becaf8b06e670e3c2e3cd (diff)
downloadforums-1e37d97909ccf52b08e2a809ea8a9365c824d8de.tar
forums-1e37d97909ccf52b08e2a809ea8a9365c824d8de.tar.gz
forums-1e37d97909ccf52b08e2a809ea8a9365c824d8de.tar.bz2
forums-1e37d97909ccf52b08e2a809ea8a9365c824d8de.tar.xz
forums-1e37d97909ccf52b08e2a809ea8a9365c824d8de.zip
Merge pull request #1559 from naderman/ticket/11698
[WIP][ticket/11698] Moving all autoloadable files to phpbb/
Diffstat (limited to 'phpBB/includes/db/migration/data/310/notifications.php')
-rw-r--r--phpBB/includes/db/migration/data/310/notifications.php96
1 files changed, 0 insertions, 96 deletions
diff --git a/phpBB/includes/db/migration/data/310/notifications.php b/phpBB/includes/db/migration/data/310/notifications.php
deleted file mode 100644
index 17c939d95a..0000000000
--- a/phpBB/includes/db/migration/data/310/notifications.php
+++ /dev/null
@@ -1,96 +0,0 @@
-<?php
-/**
-*
-* @package migration
-* @copyright (c) 2012 phpBB Group
-* @license http://opensource.org/licenses/gpl-license.php GNU Public License v2
-*
-*/
-
-class phpbb_db_migration_data_310_notifications extends phpbb_db_migration
-{
- public function effectively_installed()
- {
- return $this->db_tools->sql_table_exists($this->table_prefix . 'notifications');
- }
-
- static public function depends_on()
- {
- return array('phpbb_db_migration_data_310_dev');
- }
-
- public function update_schema()
- {
- return array(
- 'add_tables' => array(
- $this->table_prefix . 'notification_types' => array(
- 'COLUMNS' => array(
- 'notification_type' => array('VCHAR:255', ''),
- 'notification_type_enabled' => array('BOOL', 1),
- ),
- 'PRIMARY_KEY' => array('notification_type', 'notification_type_enabled'),
- ),
- $this->table_prefix . 'notifications' => array(
- 'COLUMNS' => array(
- 'notification_id' => array('UINT', NULL, 'auto_increment'),
- 'item_type' => array('VCHAR:255', ''),
- 'item_id' => array('UINT', 0),
- 'item_parent_id' => array('UINT', 0),
- 'user_id' => array('UINT', 0),
- 'notification_read' => array('BOOL', 0),
- 'notification_time' => array('TIMESTAMP', 1),
- 'notification_data' => array('TEXT_UNI', ''),
- ),
- 'PRIMARY_KEY' => 'notification_id',
- 'KEYS' => array(
- 'item_ident' => array('INDEX', array('item_type', 'item_id')),
- 'user' => array('INDEX', array('user_id', 'notification_read')),
- ),
- ),
- $this->table_prefix . 'user_notifications' => array(
- 'COLUMNS' => array(
- 'item_type' => array('VCHAR:255', ''),
- 'item_id' => array('UINT', 0),
- 'user_id' => array('UINT', 0),
- 'method' => array('VCHAR:255', ''),
- 'notify' => array('BOOL', 1),
- ),
- ),
- ),
- );
- }
-
- public function revert_schema()
- {
- return array(
- 'drop_tables' => array(
- $this->table_prefix . 'notification_types',
- $this->table_prefix . 'notifications',
- $this->table_prefix . 'user_notifications',
- ),
- );
- }
-
- public function update_data()
- {
- return array(
- array('module.add', array(
- 'ucp',
- 'UCP_MAIN',
- array(
- 'module_basename' => 'ucp_notifications',
- 'modes' => array('notification_list'),
- ),
- )),
- array('module.add', array(
- 'ucp',
- 'UCP_PREFS',
- array(
- 'module_basename' => 'ucp_notifications',
- 'modes' => array('notification_options'),
- ),
- )),
- array('config.add', array('load_notifications', 1)),
- );
- }
-}