Index: trunk/extensions/LiquidThreads/README |
— | — | @@ -10,8 +10,15 @@ |
11 | 11 | |
12 | 12 | 1. Rename this directory to extensions/LiquidThreads inside your |
13 | 13 | MediaWiki directory. |
14 | | -2. Cause your MySQL server to execute the statements in lqt.sql. |
15 | | - (On Unix, you can say, "mysql -u $USER -p -e 'source lqt.sql'".) |
| 14 | +2. Add database tables from lqt.sql using the sql.php MediaWiki tool. |
| 15 | + (On Unix, if the current directory is the MediaWiki root directory, you can |
| 16 | + say "php maintenance/sql.php extensions/LiquidThreads/lqt.sql".) |
| 17 | + If you haven't created the AdminSettings.php file, you will have to do that |
| 18 | + first; see http://www.mediawiki.org/wiki/Manual:AdminSettings.php |
| 19 | + Alternatively, you can run lqt.sql manually (you can use the command |
| 20 | + "mysql -u $USER -p -e 'source lqt.sql'" on Unix), but you might have to |
| 21 | + edit it first, and replace the /*$wgDBprefix*/ and /*$wgDBTableOptions*/ |
| 22 | + strings with the corresponding settings. |
16 | 23 | 3. Add this line to the end of your LocalSettings.php: |
17 | 24 | require_once('extensions/LiquidThreads/LiquidThreads.php'); |
18 | 25 | |
Index: trunk/extensions/LiquidThreads/lqt.sql |
— | — | @@ -30,7 +30,7 @@ |
31 | 31 | INDEX thread_modified (thread_modified), |
32 | 32 | INDEX thread_created (thread_created), |
33 | 33 | INDEX thread_summary_page (thread_summary_page) |
34 | | -) TYPE=InnoDB; |
| 34 | +) /*$wgDBTableOptions*/; |
35 | 35 | |
36 | 36 | CREATE TABLE /*$wgDBprefix*/historical_thread ( |
37 | 37 | -- Note that many hthreads can share an id, which is the same as the id |
— | — | @@ -41,7 +41,7 @@ |
42 | 42 | hthread_change_type int(4) unsigned NOT NULL, |
43 | 43 | hthread_change_object int(8) unsigned NULL, |
44 | 44 | PRIMARY KEY hthread_id_revision (hthread_id, hthread_revision) |
45 | | -) TYPE=InnoDB; |
| 45 | +) /*$wgDBTableOptions*/; |
46 | 46 | |
47 | 47 | CREATE TABLE /*$wgDBprefix*/user_message_state ( |
48 | 48 | ums_user int unsigned NOT NULL, |
— | — | @@ -49,4 +49,4 @@ |
50 | 50 | ums_read_timestamp varbinary(14), |
51 | 51 | |
52 | 52 | PRIMARY KEY (ums_user, ums_thread) |
53 | | -) TYPE=InnoDB; |
| 53 | +) /*$wgDBTableOptions*/; |