Add fields: task creator and modification date

This commit is contained in:
Frédéric Guillot
2014-07-08 15:07:07 -03:00
parent 7a64053cb8
commit ba93061f4d
13 changed files with 93 additions and 33 deletions

View File

@@ -4,7 +4,13 @@ namespace Schema;
use Core\Security;
const VERSION = 1;
const VERSION = 2;
function version_2($pdo)
{
$pdo->exec("ALTER TABLE tasks ADD COLUMN creator_id INTEGER DEFAULT 0");
$pdo->exec("ALTER TABLE tasks ADD COLUMN date_modification INTEGER DEFAULT 0");
}
function version_1($pdo)
{