Add missing migrations for Mysql and Postgres

This commit is contained in:
Frederic Guillot 2017-04-08 15:54:26 -04:00
parent d7b0cfbbe5
commit 0f4b5d9562
2 changed files with 12 additions and 2 deletions

View File

@ -8,7 +8,12 @@ use PDO;
use Kanboard\Core\Security\Token;
use Kanboard\Core\Security\Role;
const VERSION = 122;
const VERSION = 123;
function version_123(PDO $pdo)
{
$pdo->exec('ALTER TABLE column_has_move_restrictions ADD COLUMN only_assigned TINYINT(1) DEFAULT 0');
}
function version_122(PDO $pdo)
{

View File

@ -8,7 +8,12 @@ use PDO;
use Kanboard\Core\Security\Token;
use Kanboard\Core\Security\Role;
const VERSION = 101;
const VERSION = 102;
function version_102(PDO $pdo)
{
$pdo->exec('ALTER TABLE column_has_move_restrictions ADD COLUMN only_assigned BOOLEAN DEFAULT FALSE');
}
function version_101(PDO $pdo)
{