summaryrefslogtreecommitdiff
path: root/app/Schema/Mysql.php
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2014-06-25 10:07:06 -0300
committerFrédéric Guillot <fred@kanboard.net>2014-06-25 10:07:06 -0300
commite5e355d06890b324df2ded707ca491f9539dd171 (patch)
treeec176a2a9eab58d9f0b7b661378f80442ca6a9b3 /app/Schema/Mysql.php
parent60cc58c940537e299cee388d8b1d8c56e27e2d80 (diff)
Merge pull-request #140 (several small fixes)
Diffstat (limited to 'app/Schema/Mysql.php')
-rw-r--r--app/Schema/Mysql.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/Schema/Mysql.php b/app/Schema/Mysql.php
index ddb2acee..7ff130cf 100644
--- a/app/Schema/Mysql.php
+++ b/app/Schema/Mysql.php
@@ -2,11 +2,12 @@
namespace Schema;
+use Core\Security;
const VERSION = 19;
function version_19($pdo)
{
- $pdo->exec("ALTER TABLE config ADD COLUMN api_token VARCHAR(255) DEFAULT '".\Core\Security::generateToken()."'");
+ $pdo->exec("ALTER TABLE config ADD COLUMN api_token VARCHAR(255) DEFAULT '".Security::generateToken()."'");
}
function version_18($pdo)
@@ -268,6 +269,6 @@ function version_1($pdo)
$pdo->exec("
INSERT INTO config
(webhooks_token)
- VALUES ('".\Core\Security::generateToken()."')
+ VALUES ('".Security::generateToken()."')
");
}