Add migration to rename old event name

This commit is contained in:
Frederic Guillot
2016-02-19 23:21:37 -05:00
parent de4519fa2c
commit 6d09bfc96e
3 changed files with 18 additions and 3 deletions

View File

@@ -6,7 +6,12 @@ use PDO;
use Kanboard\Core\Security\Token;
use Kanboard\Core\Security\Role;
const VERSION = 106;
const VERSION = 107;
function version_107(PDO $pdo)
{
$pdo->exec("UPDATE project_activities SET event_name='task.file.create' WHERE event_name='file.create'");
}
function version_106(PDO $pdo)
{