replace session management routines with memcached
This commit is contained in:
@@ -13,7 +13,6 @@ drop table if exists appData;
|
||||
drop table if exists appBundle;
|
||||
drop table if exists appVotes;
|
||||
drop table if exists appNotes;
|
||||
drop table if exists sessionMessages;
|
||||
|
||||
|
||||
/*
|
||||
@@ -176,15 +175,3 @@ create table appNotes (
|
||||
key(noteId)
|
||||
);
|
||||
|
||||
|
||||
/*
|
||||
*
|
||||
*/
|
||||
create table sessionMessages (
|
||||
id int not null auto_increment,
|
||||
time datetime,
|
||||
sessionId varchar(32),
|
||||
message text,
|
||||
key(id),
|
||||
index(sessionId)
|
||||
);
|
||||
|
||||
@@ -5,12 +5,12 @@ echo NOTE: It is ok for this to fail if the user already exists
|
||||
echo there does not appear to be a way to create a user only
|
||||
echo if they do not exist so we have to live with a potential
|
||||
echo error after we try.
|
||||
mysql -p -u root < create_user.sql
|
||||
mysql -p -u root apidb < create_user.sql
|
||||
|
||||
echo Create the apidb database, and tables
|
||||
cat create_apidb_base.sql appdb_tables.sql \
|
||||
prefs_list.sql user_list.sql user_prefs.sql \
|
||||
user_privs.sql session_list.sql app_category.sql \
|
||||
user_privs.sql app_category.sql \
|
||||
maintainers.sql buglinks.sql monitors.sql \
|
||||
error_log.sql distributions.sql testResults.sql \
|
||||
| mysql -p -u root
|
||||
| mysql -p -u root apidb
|
||||
|
||||
@@ -1,13 +0,0 @@
|
||||
use apidb;
|
||||
|
||||
DROP TABLE IF EXISTS session_list;
|
||||
|
||||
CREATE TABLE session_list (
|
||||
session_id varchar(64) NOT NULL default '',
|
||||
userid int(11) default NULL,
|
||||
ip varchar(64) default NULL,
|
||||
data text,
|
||||
messages text,
|
||||
stamp datetime NOT NULL,
|
||||
PRIMARY KEY (session_id)
|
||||
) TYPE=MyISAM;
|
||||
Reference in New Issue
Block a user