Add Postgresql support

This commit is contained in:
Frédéric Guillot
2014-07-05 16:32:24 -03:00
parent 23341b2326
commit 035294798d
12 changed files with 364 additions and 23 deletions

View File

@@ -174,7 +174,10 @@ class Config extends Base
*/
public function regenerateTokens()
{
$this->db->table(self::TABLE)->update(array('webhooks_token' => Security::generateToken()));
$this->db->table(self::TABLE)->update(array(
'webhooks_token' => Security::generateToken(),
'api_token' => Security::generateToken(),
));
$projects = $this->db->table(Project::TABLE)->findAllByColumn('id');