Usernames should have a maximum length

Currently the users.username field is of type text on PostgreSQL without a limit that I can find. This means users are in theory able to create usernames with a size of whatever the limit of text is (I believe 1GB). We should instead put a limit on this column, something like 256 characters should be more than enough.

cc @rspeicher @DouweM @dzaporozhets

Assignee Loading
Time tracking Loading