added table for VM requests

This commit is contained in:
François Serman 2013-04-21 09:27:59 +00:00
parent cde57cbc86
commit db6bf24171
2 changed files with 28 additions and 0 deletions

View File

@ -715,6 +715,21 @@ CREATE TABLE IF NOT EXISTS `db_servers` (
PRIMARY KEY (`id`)
) ENGINE=MyISAM COMMENT='List of the databases servers';
-- Table for VM requests
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_end` datetime DEFAULT NULL,
`login` varchar(256) 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`)
) ENGINE=MyISAM COMMENT='VM Allocation requests';
CREATE TABLE IF NOT EXISTS `actions` (
id bigint(20) unsigned NOT NULL AUTO_INCREMENT,
type enum ('CREATE_FILE','CREATE_DIR','DELETE','MOVE'),

View File

@ -15,3 +15,16 @@ ALTER TABLE `membres` ADD db_server_id int(10) DEFAULT NULL;
-- Alter table FTP to add 'enabled'
ALTER TABLE `ftpusers` ADD `enabled` boolean NOT NULL DEFAULT TRUE ;
-- New table for VM requests
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_end` datetime DEFAULT NULL,
`login` varchar(256) 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`)
) ENGINE=MyISAM COMMENT='VM Allocation requests';