LibraryOfCongress / chronam

This software project is no longer being actively developed at the Library of Congress. Consider using the Open-ONI (https://github.com/open-oni) fork of the chronam software. Project mailing list: http://listserv.loc.gov/archives/chronam-users.html.
71 stars 34 forks source link

adds default values for text fields #240

Closed dcmcand closed 2 years ago

dcmcand commented 2 years ago

Adds default values for text fields to allow batch imports to work with mysql 8.

Without default values, loading batches with a MySQL 8 db throws the following error: unable to load batch: (1364, "Field 'text' doesn't have a default value")

This PR adds default values of a blank string and allows the fields modified to be blank. It also includes to Django generated migration file for this change.