Hide tasks within specific columns in dashboard (#2424)
This commit is contained in:
committed by
Frédéric Guillot
parent
b215296f97
commit
6ccd8c11fa
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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`),
|
||||
|
||||
@@ -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"
|
||||
);
|
||||
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user