astrosat / django-astrosat-users

Common backend library for Astrosat projects' user management
GNU General Public License v3.0
2 stars 0 forks source link

feat(backend): update migration to use uuid as customer.pk #57

Closed allynt closed 4 years ago

allynt commented 4 years ago

Updated the migration to use a UUIDField as the Customer primary key; The original code used a blank db, but when trying to use this library in an existing project (w/ existing objects in the db) it fell over trying to cast an integer as a uuid.

This updated migration, does it in several steps: creating the uuid, then deleting the existing pk, then setting the new uuid as the pk.