Commit 77b86a62 authored by Celine Noirot's avatar Celine Noirot

Add 2 years purge data (version alpha) install

parent ddd70e15
......@@ -893,6 +893,11 @@ CREATE TABLE IF NOT EXISTS `tx_nG6_analyze` (
`params` text NOT NULL,
`is_editable` boolean NOT NULL DEFAULT FALSE,
`storage_size` bigint(20) NOT NULL DEFAULT '0',
`data_state` varchar(255) NOT NULL DEFAULT 'stored',
`retention_date` INT NOT NULL ,
`purged_date` INT NOT NULL ,
`purged_size` BIGINT NOT NULL ,
`mail_sent_date` INT NOT NULL ;
PRIMARY KEY (`uid`),
KEY `parent` (`pid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
......@@ -976,6 +981,11 @@ CREATE TABLE IF NOT EXISTS `tx_nG6_run` (
`description` text ,
`sequencer` varchar(255) NOT NULL DEFAULT '',
`storage_size` bigint(20) NOT NULL DEFAULT '0',
`data_state` VARCHAR( 250 ) NOT NULL DEFAULT 'stored' ,
`retention_date` INT NOT NULL ,
`purged_date` INT NOT NULL ,
`purged_size` BIGINT NOT NULL ,
`mail_sent_date` INT NOT NULL ;
PRIMARY KEY (`uid`),
KEY `parent` (`pid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
......@@ -1072,6 +1082,34 @@ CREATE TABLE IF NOT EXISTS `tx_nG6_analyze_comment` (
KEY `parent` (`pid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
CREATE OR REPLACE VIEW `tx_nG6_view_project_run` AS
SELECT tx_nG6_project.uid AS project_id, tx_nG6_project.name AS project_name, tx_nG6_run.uid AS run_id, tx_nG6_run.storage_size AS storage_size, tx_nG6_run.purged_size AS purged_size, tx_nG6_run.data_state AS state, tx_nG6_analyze.retention_date AS retention_date
FROM tx_nG6_run
INNER JOIN tx_nG6_project_run ON tx_nG6_project_run.run_id = tx_nG6_run.uid
INNER JOIN tx_nG6_project ON tx_nG6_project.uid = tx_nG6_project_run.project_id
CREATE OR REPLACE VIEW tx_nG6_view_project_run_analyze AS
SELECT tx_nG6_project.uid AS project_id, tx_nG6_project.name AS project_name, tx_nG6_analyze.uid AS analyze_id, tx_nG6_analyze.storage_size AS storage_size, tx_nG6_analyze.purged_size AS purged_size, tx_nG6_analyze.data_state AS state, tx_nG6_analyze.retention_date AS retention_date
FROM tx_nG6_run
INNER JOIN tx_nG6_project_run ON tx_nG6_project_run.run_id = tx_nG6_run.uid
INNER JOIN tx_nG6_project ON tx_nG6_project.uid = tx_nG6_project_run.project_id
INNER JOIN tx_nG6_run_analyze ON tx_nG6_run_analyze.run_id = tx_nG6_run.uid
INNER JOIN tx_nG6_analyze ON tx_nG6_run_analyze.analyze_id = tx_nG6_analyze.uid
CREATE OR REPLACE VIEW tx_nG6_view_project_analyze AS
SELECT tx_nG6_project.uid AS project_id, tx_nG6_project.name AS project_name, tx_nG6_analyze.uid AS analyze_id, tx_nG6_analyze.storage_size AS storage_size, tx_nG6_analyze.purged_size AS purged_size, tx_nG6_analyze.data_state AS state, tx_nG6_analyze.retention_date AS retention_date
FROM tx_nG6_project
INNER JOIN tx_nG6_project_analyze ON tx_nG6_project_analyze.project_id = tx_nG6_project.uid
INNER JOIN tx_nG6_analyze ON tx_nG6_project_analyze.analyze_id = tx_nG6_analyze.uid
CREATE OR REPLACE VIEW tx_nG6_view_project_user AS
SELECT tx_nG6_project.uid AS project_id, fe_users.username AS user_name, fe_users.email AS email, fe_users.usergroup AS user_group, fe_rights_levels.right_level_label AS right_level_label
FROM tx_nG6_project
INNER JOIN fe_rights ON fe_rights.project_id = tx_nG6_project.uid
INNER JOIN fe_users ON fe_rights.fe_user_id = fe_users.uid
INNER JOIN fe_groups ON fe_users.usergroup = fe_groups.uid
INNER JOIN fe_rights_levels ON fe_rights_levels.right_level_id = fe_rights.right_id
CREATE TABLE IF NOT EXISTS `tx_rsaauth_keys` (
`uid` int(11) NOT NULL AUTO_INCREMENT,
`pid` int(11) NOT NULL DEFAULT '0',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment