Update of /cvsroot/lxr/lxr
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv24796
Modified Files:
initdb-mysql
Log Message:
Feature 1691378 (Rearchitect the DB backends) Part VI:
* Changed MySql table name from lxr_useage to lxr_usage
* Changed parameter for LXR::Index::purge() from $version -> $release
* Replaced tabs with spaces in LXR::Index modules
* Changed status_get SQL statement name to status_select to match naming convention
NOTE that the change to the table name in MySql means that any existing databases will not work with this version of lxr. This is unavoidable if we wish to standardise the DBs
Index: initdb-mysql
===================================================================
RCS file: /cvsroot/lxr/lxr/initdb-mysql,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- initdb-mysql 23 Mar 2009 12:27:18 -0000 1.12
+++ initdb-mysql 9 May 2009 15:39:00 -0000 1.13
@@ -38,7 +38,7 @@
primary key (fileid,rel)
);
-create table lxr_useage
+create table lxr_usage
(fileid int not null references lxr_files,
line int not null,
symid int not null references lxr_symbols
@@ -60,7 +60,7 @@
create index lxr_indexindex on lxr_indexes (symid) ;
create unique index lxr_symbolindex on lxr_symbols (symname) ;
-create index lxr_useageindex on lxr_useage (symid) ;
+create index lxr_usageindex on lxr_usage (symid) ;
create index lxr_filelookup on lxr_files (filename);
grant all on lxr.* to lxr@localhost;
|