status-im / open-bounty

Enable communities to distribute funds to push their cause forward.
https://openbounty.status.im/
GNU Affero General Public License v3.0
118 stars 36 forks source link

Ensure `address` is either NULL or non-empty string #439

Open martinklepsch opened 6 years ago

martinklepsch commented 6 years ago

The address column in the users table should never contain an empty string "".

You can create new migrations using lein migratus create enforce-non-blank-address.

This probably also requires some changes to the related API endpoint, namely ensuring that if an empty string is sent it should be converted to nil before storing it in the database.