Skip to content

Commit

Permalink
feat(SQLite): case insensitive usernames
Browse files Browse the repository at this point in the history
  • Loading branch information
cooldogedev committed Nov 6, 2023
1 parent 78b95d8 commit 770bd23
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,6 @@ final class TableQuery extends SQLiteQuery

public function onRun(SQLite3 $connection): void
{
$connection->exec("CREATE TABLE IF NOT EXISTS " . $this->table . " (xuid VARCHAR(32) PRIMARY KEY, username VARCHAR(32) NOT NULL, amount BIGINT NOT NULL, decimals TINYINT NOT NULL)");
$connection->exec("CREATE TABLE IF NOT EXISTS " . $this->table . " (xuid VARCHAR(32) PRIMARY KEY, username VARCHAR(32) COLLATE NOCASE, amount BIGINT, decimals TINYINT)");
}
}

0 comments on commit 770bd23

Please sign in to comment.