migration: except celery; docstring; CRLF (#2029)

Make it safe to run on the celery DB, bu not running it.  Added a
doctring.  Sorry about the whole-file diff, had to fix windows line
termination.