Hide tasks within specific columns in dashboard (#2424)

This commit is contained in:
Busfreak
2016-07-05 17:09:13 +02:00
committed by Frédéric Guillot
parent b215296f97
commit 6ccd8c11fa
36 changed files with 66 additions and 9 deletions

View File

@@ -6,7 +6,12 @@ use PDO;
use Kanboard\Core\Security\Token;
use Kanboard\Core\Security\Role;
const VERSION = 111;
const VERSION = 112;
function version_112(PDO $pdo)
{
$pdo->exec('ALTER TABLE columns ADD COLUMN hide_in_dashboard INT DEFAULT 0 NOT NULL');
}
function version_111(PDO $pdo)
{

View File

@@ -6,7 +6,12 @@ use PDO;
use Kanboard\Core\Security\Token;
use Kanboard\Core\Security\Role;
const VERSION = 90;
const VERSION = 91;
function version_91(PDO $pdo)
{
$pdo->exec("ALTER TABLE columns ADD COLUMN hide_in_dashboard BOOLEAN DEFAULT '0'");
}
function version_90(PDO $pdo)
{

View File

@@ -44,6 +44,7 @@ CREATE TABLE `columns` (
`position` int(11) NOT NULL,
`project_id` int(11) NOT NULL,
`task_limit` int(11) DEFAULT '0',
`hide_in_dashboard` int(11) DEFAULT '0',
`description` text,
PRIMARY KEY (`id`),
UNIQUE KEY `idx_title_project` (`title`,`project_id`),

View File

@@ -98,6 +98,7 @@ CREATE TABLE "columns" (
"position" integer,
"project_id" integer NOT NULL,
"task_limit" integer DEFAULT 0,
"hide_in_dashboard" integer DEFAULT 0,
"description" "text"
);

View File

@@ -6,7 +6,12 @@ use Kanboard\Core\Security\Token;
use Kanboard\Core\Security\Role;
use PDO;
const VERSION = 102;
const VERSION = 103;
function version_103(PDO $pdo)
{
$pdo->exec("ALTER TABLE columns ADD COLUMN hide_in_dashboard INTEGER DEFAULT 0 NOT NULL");
}
function version_102(PDO $pdo)
{