From 76e23d1aef14c8e8798a0f135e3373a4b8dd5ec5 Mon Sep 17 00:00:00 2001 From: Alan Garcia Date: Fri, 17 May 2013 16:05:39 +0000 Subject: [PATCH] La table action est la bienvenue dans les upgrades --- install/upgrades/3.1.0~a.sql | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/install/upgrades/3.1.0~a.sql b/install/upgrades/3.1.0~a.sql index 66504991..f4499384 100644 --- a/install/upgrades/3.1.0~a.sql +++ b/install/upgrades/3.1.0~a.sql @@ -27,3 +27,16 @@ CREATE TABLE IF NOT EXISTS `vm_history` ( KEY `date_end` (`date_end`), KEY `uid` (`uid`) ) 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','FIXDIR','FIXFILE'), + parameters longtext default NULL, + creation timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, + begin timestamp, + end timestamp, + user varchar(255) default NULL, + status int(8) unsigned default NULL, + PRIMARY KEY ( `id` ) +) ENGINE=MyISAM COMMENT = 'generic actions';