Fix hashed password length constraint

This commit is contained in:
Tom Russell 2018-09-30 20:30:21 +01:00
parent c3e539cd81
commit d31d5e0c10

View File

@ -91,7 +91,7 @@ CREATE TABLE IF NOT EXISTS users (
);
ALTER TABLE users ADD CONSTRAINT users_username_len CHECK (length(username) < 30);
ALTER TABLE users ADD CONSTRAINT users_email_len CHECK (length(email) < 50);
ALTER TABLE users ADD CONSTRAINT users_pass_len CHECK (length(pass) < 60);
ALTER TABLE users ADD CONSTRAINT users_pass_len CHECK (length(pass) <= 60);
CREATE INDEX IF NOT EXISTS user_username_idx ON users ( username );
CREATE INDEX IF NOT EXISTS user_email_idx ON users ( email );