Improve API calls for users

This commit is contained in:
Frédéric Guillot
2014-09-16 19:30:18 +02:00
parent eb6dfdca53
commit e7a20b9d8f
8 changed files with 291 additions and 35 deletions

View File

@@ -4,7 +4,12 @@ namespace Schema;
use Core\Security;
const VERSION = 26;
const VERSION = 27;
function version_27($pdo)
{
$pdo->exec('CREATE UNIQUE INDEX users_username_idx ON users(username)');
}
function version_26($pdo)
{