Add per-project and per-swimlane task limits

This change allows projects and swimlanes to be configured with task limits that apply to their whole scope (i.e. all active tasks in a project or swimlane, respectively), as opposed to the usual per-column task limits.
This commit is contained in:
Andre Nathan
2020-02-26 01:26:31 -03:00
committed by GitHub
parent 542fd17891
commit c8a617cfcb
21 changed files with 161 additions and 27 deletions

View File

@@ -8,7 +8,17 @@ use PDO;
use Kanboard\Core\Security\Token;
use Kanboard\Core\Security\Role;
const VERSION = 134;
const VERSION = 136;
function version_136(PDO $pdo)
{
$pdo->exec('ALTER TABLE `swimlanes` ADD COLUMN `task_limit` INT DEFAULT 0');
}
function version_135(PDO $pdo)
{
$pdo->exec('ALTER TABLE `projects` ADD COLUMN `task_limit` INT DEFAULT 0');
}
function version_134(PDO $pdo)
{

View File

@@ -8,7 +8,17 @@ use PDO;
use Kanboard\Core\Security\Token;
use Kanboard\Core\Security\Role;
const VERSION = 112;
const VERSION = 114;
function version_114(PDO $pdo)
{
$pdo->exec('ALTER TABLE "swimlanes" ADD COLUMN task_limit INTEGER DEFAULT 0');
}
function version_113(PDO $pdo)
{
$pdo->exec('ALTER TABLE "projects" ADD COLUMN task_limit INTEGER DEFAULT 0');
}
function version_112(PDO $pdo)
{

View File

@@ -8,7 +8,17 @@ use Kanboard\Core\Security\Token;
use Kanboard\Core\Security\Role;
use PDO;
const VERSION = 121;
const VERSION = 123;
function version_123(PDO $pdo)
{
$pdo->exec('ALTER TABLE swimlanes ADD COLUMN task_limit INTEGER DEFAULT 0');
}
function version_122(PDO $pdo)
{
$pdo->exec('ALTER TABLE projects ADD COLUMN task_limit INTEGER DEFAULT 0');
}
function version_121(PDO $pdo)
{