mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-19 15:01:33 +02:00
- updated topic tracking code
- additional changes (mostly bugfixes) - bart, if you update your user table with the user_lastmark field, set it to the user_lastvisit value ;) - and last but not least, introducing some bugs in ucp main front (regarding topic tracking) git-svn-id: file:///svn/phpbb/trunk@5272 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -708,10 +708,16 @@ CREATE TABLE phpbb_topics_marking (
|
||||
user_id INTEGER DEFAULT 0 NOT NULL,
|
||||
topic_id INTEGER DEFAULT 0 NOT NULL,
|
||||
forum_id INTEGER DEFAULT 0 NOT NULL,
|
||||
mark_type INTEGER DEFAULT 0 NOT NULL,
|
||||
mark_time INTEGER DEFAULT 0 NOT NULL
|
||||
);;
|
||||
|
||||
# phpbb_topics_posted
|
||||
CREATE TABLE phpbb_topics_posted (
|
||||
user_id INTEGER DEFAULT 0 NOT NULL,
|
||||
topic_id INTEGER DEFAULT 0 NOT NULL,
|
||||
topic_posted INTEGER DEFAULT 0 NOT NULL
|
||||
);;
|
||||
|
||||
# phpbb_topics_watch
|
||||
CREATE TABLE phpbb_topics_watch (
|
||||
topic_id INTEGER DEFAULT 0 NOT NULL,
|
||||
@@ -742,6 +748,7 @@ CREATE TABLE phpbb_users (
|
||||
user_email_hash DOUBLE PRECISION DEFAULT 0 NOT NULL,
|
||||
user_birthday VARCHAR(10) NOT NULL,
|
||||
user_lastvisit INTEGER DEFAULT 0 NOT NULL,
|
||||
user_lastmark INTEGER DEFAULT 0 NOT NULL,
|
||||
user_lastpost_time INTEGER DEFAULT 0 NOT NULL,
|
||||
user_lastpage VARCHAR(100) NOT NULL,
|
||||
user_last_confirm_key VARCHAR(10) NOT NULL,
|
||||
@@ -1376,6 +1383,17 @@ ADD PRIMARY KEY (
|
||||
topic_id
|
||||
);;
|
||||
|
||||
CREATE INDEX forum_idtp
|
||||
ON phpbb_topics_marking(
|
||||
forum_id
|
||||
);;
|
||||
|
||||
ALTER TABLE phpbb_topics_posted
|
||||
ADD PRIMARY KEY (
|
||||
user_id,
|
||||
topic_id
|
||||
);;
|
||||
|
||||
CREATE INDEX notify_status71
|
||||
ON phpbb_topics_watch(
|
||||
notify_status
|
||||
|
Reference in New Issue
Block a user