Usually I only introduce new bugs whenever I rewrite code, but with today's framework migration I discovered that many uniqueness constraints for input validation were broken for quite a while. Oops.
The commits tell a story:
https://g.blicky.net/vndb.git/commit/?id=67fb5507f6a527202113ee39ee67083bf465a999
https://g.blicky.net/vndb.git/commit/?id=ed5c95693d0d0ad431aa263459ae3ec0070265af
https://g.blicky.net/vndb.git/commit/?id=4dd52b5c90cda8c8581eab9746a18bf5d10a6661