Add configurable task priority

This commit is contained in:
Frederic Guillot
2016-01-24 20:38:39 -05:00
parent 60f3d7f83d
commit 051bf1c9db
49 changed files with 401 additions and 19 deletions

View File

@@ -6,7 +6,15 @@ use PDO;
use Kanboard\Core\Security\Token;
use Kanboard\Core\Security\Role;
const VERSION = 102;
const VERSION = 103;
function version_103(PDO $pdo)
{
$pdo->exec("ALTER TABLE projects ADD COLUMN priority_default INT DEFAULT 0");
$pdo->exec("ALTER TABLE projects ADD COLUMN priority_start INT DEFAULT 0");
$pdo->exec("ALTER TABLE projects ADD COLUMN priority_end INT DEFAULT 3");
$pdo->exec("ALTER TABLE tasks ADD COLUMN priority INT DEFAULT 0");
}
function version_102(PDO $pdo)
{