aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/install/database_update.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2007-05-07 13:19:59 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2007-05-07 13:19:59 +0000
commit5de26540b4f0348719ec93e760ed987f92a60075 (patch)
treec3404563a65d5ed2699257ee82d723fb39b28cfe /phpBB/install/database_update.php
parent8678ad0b0b2f83ce91047f06fb73474105a70d7c (diff)
downloadforums-5de26540b4f0348719ec93e760ed987f92a60075.tar
forums-5de26540b4f0348719ec93e760ed987f92a60075.tar.gz
forums-5de26540b4f0348719ec93e760ed987f92a60075.tar.bz2
forums-5de26540b4f0348719ec93e760ed987f92a60075.tar.xz
forums-5de26540b4f0348719ec93e760ed987f92a60075.zip
fixing some bugs
changed the way we are handling bookmarks. No order_id required, really! Order by last post time as suggested by BartVB. git-svn-id: file:///svn/phpbb/trunk@7497 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/install/database_update.php')
-rw-r--r--phpBB/install/database_update.php15
1 files changed, 14 insertions, 1 deletions
diff --git a/phpBB/install/database_update.php b/phpBB/install/database_update.php
index 395fcc4918..79c7145797 100644
--- a/phpBB/install/database_update.php
+++ b/phpBB/install/database_update.php
@@ -336,6 +336,10 @@ $database_update_info = array(
STYLES_IMAGESET_TABLE => array(
'imgset_nm',
),
+ BOOKMARKS_TABLE => array(
+ 'order_id',
+ 'topic_user_id',
+ ),
),
'add_index' => array(
SEARCH_WORDLIST_TABLE => array(
@@ -363,7 +367,7 @@ $database_update_info = array(
'username_clean' => array('username_clean'),
),
),
- // Add the following columns
+ // Drop the following columns
'drop_columns' => array(
STYLES_IMAGESET_TABLE => array(
'site_logo',
@@ -461,6 +465,15 @@ $database_update_info = array(
'user_icon9',
'user_icon10'
),
+ BOOKMARKS_TABLE => array(
+ 'order_id',
+ ),
+ ),
+ // Adding primary key
+ 'add_primary_keys' => array(
+ BOOKMARKS_TABLE => array(
+ 'topic_id', 'user_id',
+ ),
),
),
);