datamade / api.opencivicdata.org

:cloud: deployment stuff for api.opencivicdata.org
3 stars 3 forks source link

Make migration for unmangling bill identifiers #30

Closed reginafcompton closed 6 years ago

reginafcompton commented 6 years ago

This PR relates to: https://github.com/datamade/django-councilmatic/pull/190

It handles issue: https://github.com/datamade/scrapers-us-municipal/issues/12

Deploying to production should auto-run these migrations. I included some very light logging (via print statements) in the migrations, as such in the after_install script: VIRTUALENV/bin/python $APP_PATH/manage.py migrate >> /tmp/ocdapi_migrations.log