735f2cb969c6e05a2858c85071e2b5a5fb6d6b38
[lhc/web/wiklou.git] / maintenance / archives / patch-usernewtalk.sql
1 --- This table stores all the IDs of users whose talk
2 --- page has been changed (the respective row is deleted
3 --- when the user looks at the page).
4 --- The respective column in the user table is no longer
5 --- required and therefore dropped.
6
7 CREATE TABLE user_newtalk (
8 user_id int(5) NOT NULL default '0',
9 user_ip varchar(40) NOT NULL default '',
10 KEY user_id (user_id),
11 KEY user_ip (user_ip)
12 ) TYPE=MyISAM;
13
14 INSERT INTO
15 user_newtalk (user_id, user_ip)
16 SELECT user_id, ''
17 FROM user
18 WHERE user_newtalk != 0;
19
20 ALTER TABLE user DROP COLUMN user_newtalk;