added table for VM requests
This commit is contained in:
parent
cde57cbc86
commit
db6bf24171
|
@ -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'),
|
||||
|
|
|
@ -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';
|
||||
|
|
Loading…
Reference in New Issue