adjusted developer and production system db structure

This commit is contained in:
following
2013-02-15 17:49:34 +01:00
parent 3e210701a3
commit 92e522f66d
4 changed files with 8 additions and 5 deletions
+5 -1
View File
@@ -25,4 +25,8 @@ date commit ID change
2012-11-17 39a25f99 removed cache_waypoint_pool.cache_id and index cache_id
added cache_waypoint_pool.uuid and index uuid
changed caches.wp_oc to 'NOT NULL'
2013-02-12 added indices logentries:date and email_user:date
2013-02-12 d15ee5f9 added indices logentries:date and email_user:date
2013-02-15 adjusted developer and production system:
- added index logentries:userid
- changed user.password length to 32
- removed sqlsession.remote_addr and index remote_addr
+1
View File
@@ -11,5 +11,6 @@ CREATE TABLE `logentries` (
`logtext` mediumtext NOT NULL,
`details` blob NOT NULL,
PRIMARY KEY (`id`),
KEY `userid` (`userid`,`objectid1`,`module`),
KEY `date` (`date_created`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ;
+1 -1
View File
@@ -8,7 +8,7 @@ CREATE TABLE `user` (
`last_modified` datetime NOT NULL COMMENT 'via Trigger (user)',
`last_login` date default NULL,
`username` varchar(60) NOT NULL,
`password` varchar(512) default NULL,
`password` varchar(32) default NULL,
`email` varchar(60) default NULL,
`latitude` double NOT NULL,
`longitude` double NOT NULL,
+1 -3
View File
@@ -4,7 +4,6 @@ CREATE TABLE `xmlsession` (
`id` int(10) unsigned NOT NULL auto_increment,
`date_created` datetime NOT NULL default '0000-00-00 00:00:00' COMMENT 'via trigger (xmlsession)',
`last_use` datetime NOT NULL default '0000-00-00 00:00:00',
`remote_addr` char(15) default NULL,
`users` int(10) unsigned NOT NULL default '0',
`caches` int(10) unsigned NOT NULL default '0',
`cachedescs` int(10) unsigned NOT NULL default '0',
@@ -14,6 +13,5 @@ CREATE TABLE `xmlsession` (
`modified_since` datetime NOT NULL default '0000-00-00 00:00:00',
`cleaned` tinyint(1) NOT NULL default '0',
`agent` varchar(60) NOT NULL,
PRIMARY KEY (`id`),
KEY `remote_addr` (`remote_addr`)
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ;