make usernames unique
This commit is contained in:
@@ -23,7 +23,7 @@ const migrations = [
|
||||
await conn.query(`
|
||||
CREATE TABLE users (
|
||||
id INT PRIMARY KEY AUTO_INCREMENT,
|
||||
username VARCHAR(32),
|
||||
username VARCHAR(32) UNIQUE,
|
||||
input_method INT
|
||||
)
|
||||
`);
|
||||
|
||||
Reference in New Issue
Block a user