Add date_modification to comments (PR #2950)
This commit is contained in:
committed by
Frédéric Guillot
parent
67aca3c664
commit
8e18c39db9
@@ -6,7 +6,15 @@ use PDO;
|
||||
use Kanboard\Core\Security\Token;
|
||||
use Kanboard\Core\Security\Role;
|
||||
|
||||
const VERSION = 118;
|
||||
const VERSION = 119;
|
||||
|
||||
function version_119(PDO $pdo)
|
||||
{
|
||||
$pdo->exec('ALTER TABLE `comments` ADD COLUMN `date_modification` BIGINT(20)');
|
||||
$pdo->exec('UPDATE `comments`
|
||||
SET `date_modification` = `date_creation`
|
||||
WHERE `date_modification` IS NULL');
|
||||
}
|
||||
|
||||
function version_118(PDO $pdo)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user