1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 05:50:42 +02:00

[ticket/11103] Add tables to the database updater and installer

PHPBB3-11103
This commit is contained in:
Nathan Guse
2012-09-08 13:09:34 -05:00
parent 32a966b21d
commit b594635526
5 changed files with 140 additions and 19 deletions

View File

@@ -1295,6 +1295,28 @@ function get_schema_struct()
),
);
$schema_data['phpbb_notifications'] = array(
'COLUMNS' => array(
'item_type' => array('UINT', 0),
'item_id' => array('UINT', 0),
'user_id' => array('UINT', 0),
'unread' => array('BOOL', 1),
'time' => array('TIMESTAMP', 1),
'data' => array('TEXT_UNI', ''),
),
'PRIMARY_KEY' => array(
'item_type',
'item_id',
'user_id',
),
'KEYS' => array(
'item_type' => array('INDEX', 'item_type'),
'item_id' => array('INDEX', 'item_id'),
'user_id' => array('INDEX', 'user_id'),
'time' => array('INDEX', 'time'),
),
);
$schema_data['phpbb_poll_options'] = array(
'COLUMNS' => array(
'poll_option_id' => array('TINT:4', 0),
@@ -1751,6 +1773,25 @@ function get_schema_struct()
),
);
$schema_data['phpbb_user_notifications'] = array(
'COLUMNS' => array(
'item_type' => array('UINT', 0),
'item_id' => array('UINT', 0),
'user_id' => array('UINT', 0),
'method' => array('VCHAR:25', ''),
),
'PRIMARY_KEY' => array(
'item_type',
'item_id',
'user_id',
'method',
),
'KEYS' => array(
'it' => array('INDEX', 'item_type'),
'uid' => array('INDEX', 'user_id'),
),
);
$schema_data['phpbb_user_group'] = array(
'COLUMNS' => array(
'group_id' => array('UINT', 0),