Gentoo Archives: gentoo-commits

From: "Tom Knight
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-projects commit in forums/scripts/projectSCAS/scripts: reset_phpbb_tables.sql
Date: Sun, 09 Sep 2007 10:49:20
Message-Id: E1IUKFH-0002iA-6F@stork.gentoo.org
1 tomk 07/09/09 10:42:27
2
3 Modified: reset_phpbb_tables.sql
4 Log:
5 Added results table
6
7 Revision Changes Path
8 1.4 forums/scripts/projectSCAS/scripts/reset_phpbb_tables.sql
9
10 file : http://sources.gentoo.org/viewcvs.py/gentoo-projects/forums/scripts/projectSCAS/scripts/reset_phpbb_tables.sql?rev=1.4&view=markup
11 plain: http://sources.gentoo.org/viewcvs.py/gentoo-projects/forums/scripts/projectSCAS/scripts/reset_phpbb_tables.sql?rev=1.4&content-type=text/plain
12 diff : http://sources.gentoo.org/viewcvs.py/gentoo-projects/forums/scripts/projectSCAS/scripts/reset_phpbb_tables.sql?r1=1.3&r2=1.4
13
14 Index: reset_phpbb_tables.sql
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo-projects/forums/scripts/projectSCAS/scripts/reset_phpbb_tables.sql,v
17 retrieving revision 1.3
18 retrieving revision 1.4
19 diff -u -r1.3 -r1.4
20 --- reset_phpbb_tables.sql 3 Sep 2007 14:00:39 -0000 1.3
21 +++ reset_phpbb_tables.sql 9 Sep 2007 10:42:26 -0000 1.4
22 @@ -93,6 +93,15 @@
23 KEY word_id (word_id)
24 ) DELAY_KEY_WRITE=1 DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci TYPE=myisam;
25
26 +create table scas_search_results
27 + ( search_id int(11) unsigned NOT NULL auto_increment,
28 + session_id varchar(32) NOT NULL default '',
29 + search_array mediumtext NOT NULL,
30 + search_time int(11) NOT NULL default '0',
31 + PRIMARY KEY (search_id),
32 + KEY session_id (session_id)
33 + ) DELAY_KEY_WRITE=1 DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci TYPE=myisam;
34 +
35 create table scas_search_ranks
36 ( session_id char(32) NOT NULL default '',
37 post_id mediumint(8) unsigned NOT NULL default '0',
38 @@ -100,8 +109,8 @@
39 matchcount mediumint(8) unsigned NOT NULL default '1',
40 PRIMARY KEY (session_id, post_id),
41 KEY (session_id, matchcount)
42 - ) DELAY_KEY_WRITE=1 TYPE = MyISAM;
43 -
44 + ) DELAY_KEY_WRITE=1 DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci TYPE = MyISAM;
45 +
46 # Declaring a MyISAM table with the DELAY_KEY_WRITE=1 table option makes index
47 # updates faster because they are not flushed to disk until the table is
48 # closed. The downside is that if something kills the server while such a table
49
50
51
52 --
53 gentoo-commits@g.o mailing list