modified mysql scheme for vm_history

This commit is contained in:
François Serman 2013-04-21 15:02:08 +00:00
parent 5991431b8a
commit 189bb53170
2 changed files with 5 additions and 7 deletions

View File

@ -721,12 +721,11 @@ CREATE TABLE IF NOT EXISTS `vm_history` (
`ip` varchar(256) NOT NULL,
`date_start` datetime NOT NULL,
`date_end` datetime DEFAULT NULL,
`login` varchar(256) NOT NULL,
`uid` int(10) unsigned NOT NULL,
`serialized_object` TEXT NOT NULL,
`vm_id` int(10) unsigned NOT NULL,
PRIMARY KEY (`id`),
KEY `date_end` (`date_end`),
KEY `login` (`login`)
KEY `uid` (`uid`)
) ENGINE=MyISAM COMMENT='VM Allocation requests';

View File

@ -19,12 +19,11 @@ ALTER TABLE `ftpusers` ADD `enabled` boolean NOT NULL DEFAULT TRUE ;
CREATE TABLE IF NOT EXISTS `vm_history` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`ip` varchar(256) NOT NULL,
`date_start` datetime NOT NULL,
`date_start` datetime NOT NULL,
`date_end` datetime DEFAULT NULL,
`login` varchar(256) NOT NULL,
`uid` int(10) unsigned NOT NULL,
`serialized_object` TEXT NOT NULL,
`vm_id` int(10) unsigned NOT NULL,
PRIMARY KEY (`id`),
KEY `date_end` (`date_end`),
KEY `login` (`login`)
KEY `uid` (`uid`)
) ENGINE=MyISAM COMMENT='VM Allocation requests';