From d31d5e0c10231dc8da584f695687e17c8e193aa6 Mon Sep 17 00:00:00 2001 From: Tom Russell Date: Sun, 30 Sep 2018 20:30:21 +0100 Subject: [PATCH] Fix hashed password length constraint --- migrations/001.core.up.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/migrations/001.core.up.sql b/migrations/001.core.up.sql index a997eebe..45b8ea6f 100644 --- a/migrations/001.core.up.sql +++ b/migrations/001.core.up.sql @@ -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 );