Commit graph

2 commits

Author SHA1 Message Date
Joel Bradshaw
ed83032330 Fix migration for if db has multiple empty emails
If the database has multiple users with an empty email column, this
migration will fail because multiple empty strings break the unique
constraint.

A fresh database won't have this problem because it won't have any
legacy users with empty strings instead of NULL, but for existing
databases we need to convert the empty strings to NULL so they don't run
awry of the unique constraint.
2021-01-24 16:39:26 -08:00
Mouse Reeve
96cc9d44db Fixes email migration 2021-01-18 11:57:20 -08:00
Renamed from bookwyrm/migrations/0037_auto_20210118_1900.py (Browse further)