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 = 7;
const VERSION = 8;
function version_8($pdo)
{
$pdo->exec('CREATE UNIQUE INDEX users_username_idx ON users(username)');
}
function version_7($pdo)
{