Add user invitations
This commit is contained in:
@@ -6,14 +6,24 @@ use PDO;
|
||||
use Kanboard\Core\Security\Token;
|
||||
use Kanboard\Core\Security\Role;
|
||||
|
||||
const VERSION = 119;
|
||||
const VERSION = 120;
|
||||
|
||||
function version_120(PDO $pdo)
|
||||
{
|
||||
$pdo->exec("
|
||||
CREATE TABLE invites (
|
||||
email VARCHAR(255) NOT NULL,
|
||||
project_id INTEGER NOT NULL,
|
||||
token VARCHAR(255) NOT NULL,
|
||||
PRIMARY KEY(email, token)
|
||||
) ENGINE=InnoDB CHARSET=utf8
|
||||
");
|
||||
}
|
||||
|
||||
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');
|
||||
$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