diff options
author | Frédéric Guillot <fred@kanboard.net> | 2014-06-25 10:07:06 -0300 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2014-06-25 10:07:06 -0300 |
commit | e5e355d06890b324df2ded707ca491f9539dd171 (patch) | |
tree | ec176a2a9eab58d9f0b7b661378f80442ca6a9b3 /app/Schema/Sqlite.php | |
parent | 60cc58c940537e299cee388d8b1d8c56e27e2d80 (diff) |
Merge pull-request #140 (several small fixes)
Diffstat (limited to 'app/Schema/Sqlite.php')
-rw-r--r-- | app/Schema/Sqlite.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/app/Schema/Sqlite.php b/app/Schema/Sqlite.php index 438769f0..8f8e498a 100644 --- a/app/Schema/Sqlite.php +++ b/app/Schema/Sqlite.php @@ -1,12 +1,13 @@ <?php namespace Schema; +use Core\Security; const VERSION = 19; function version_19($pdo) { - $pdo->exec("ALTER TABLE config ADD COLUMN api_token TEXT DEFAULT '".\Core\Security::generateToken()."'"); + $pdo->exec("ALTER TABLE config ADD COLUMN api_token TEXT DEFAULT '".Security::generateToken()."'"); } function version_18($pdo) @@ -214,7 +215,7 @@ function version_3($pdo) foreach ($results as &$result) { $rq = $pdo->prepare('UPDATE projects SET token=? WHERE id=?'); - $rq->execute(array(\Core\Security::generateToken(), $result['id'])); + $rq->execute(array(Security::generateToken(), $result['id'])); } } } @@ -289,6 +290,6 @@ function version_1($pdo) $pdo->exec(" INSERT INTO config (language, webhooks_token) - VALUES ('en_US', '".\Core\Security::generateToken()."') + VALUES ('en_US', '".Security::generateToken()."') "); } |