]> cat aescling's git repositories - mastodon.git/commit
Fix unique username constraint for local users not being enforced in database (#14099)
authorThibG <thib@sitedethib.com>
Sun, 21 Jun 2020 10:41:38 +0000 (12:41 +0200)
committerGitHub <noreply@github.com>
Sun, 21 Jun 2020 10:41:38 +0000 (12:41 +0200)
commitc6904c0d3766a2ea8a81ab025c127169ecb51373
tree864a6b63fdaa28b8bf59b42fc68131ec10230b6a
parent75a2b8f8153ce3a6496fcaf6eedf9f2bb7c729e6
Fix unique username constraint for local users not being enforced in database (#14099)

This should not be an issue in practice because of the Rails-level uniqueness
check, but local accounts having a NULL domain means the uniqueness constraint
did not apply to them (since no two NULL values are considered equal).
db/migrate/20200620164023_add_fixed_lowercase_index_to_accounts.rb [new file with mode: 0644]
db/schema.rb