Add default project categories in settings

This commit is contained in:
Frédéric Guillot
2014-12-28 15:39:39 -05:00
parent bcbc1b78c6
commit e59be3dc02
22 changed files with 142 additions and 4 deletions

View File

@@ -5,7 +5,13 @@ namespace Schema;
use PDO;
use Core\Security;
const VERSION = 38;
const VERSION = 39;
function version_39($pdo)
{
$rq = $pdo->prepare('INSERT INTO settings VALUES (?, ?)');
$rq->execute(array('project_categories', ''));
}
function version_38($pdo)
{

View File

@@ -5,7 +5,13 @@ namespace Schema;
use PDO;
use Core\Security;
const VERSION = 19;
const VERSION = 20;
function version_20($pdo)
{
$rq = $pdo->prepare('INSERT INTO settings VALUES (?, ?)');
$rq->execute(array('project_categories', ''));
}
function version_19($pdo)
{

View File

@@ -5,7 +5,13 @@ namespace Schema;
use Core\Security;
use PDO;
const VERSION = 37;
const VERSION = 38;
function version_38($pdo)
{
$rq = $pdo->prepare('INSERT INTO settings VALUES (?, ?)');
$rq->execute(array('project_categories', ''));
}
function version_37($pdo)
{