Start to implement task history and project activity

This commit is contained in:
Frédéric Guillot
2014-09-09 20:39:45 +02:00
parent ef95c7c284
commit 9bde377bbe
29 changed files with 644 additions and 45 deletions

View File

@@ -4,7 +4,24 @@ namespace Schema;
use Core\Security;
const VERSION = 24;
const VERSION = 25;
function version_25($pdo)
{
$pdo->exec("
CREATE TABLE task_has_events (
id INTEGER PRIMARY KEY,
date_creation INTEGER,
event_name TEXT NOT NULL,
creator_id INTEGER,
project_id INTEGER,
task_id INTEGER,
FOREIGN KEY(creator_id) REFERENCES users(id) ON DELETE CASCADE,
FOREIGN KEY(project_id) REFERENCES projects(id) ON DELETE CASCADE,
FOREIGN KEY(task_id) REFERENCES tasks(id) ON DELETE CASCADE
);
");
}
function version_24($pdo)
{