Skip to content

Commit

Permalink
Make username column case insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
n0phx committed Oct 28, 2015
1 parent b6f2bec commit 2b7acde
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
SQL = """
create table users
(
username varchar primary_key unique not null, -- username
password varchar not null, -- encrypted password
created timestamp not null, -- user creation timestamp
options varchar default '{}', -- arbitary user options in json
reset_token text, -- password reset token
groups text -- comma separated list of groups
username varchar primary_key unique not null collate nocase, -- username, case insensitive
password varchar not null, -- encrypted password
created timestamp not null, -- user creation timestamp
options varchar default '{}', -- arbitary user options in json
reset_token text, -- password reset token
groups text -- comma separated list of groups
);
"""

Expand Down

0 comments on commit 2b7acde

Please sign in to comment.