django-eav2/eav/migrations/0006_add_entity_uuid.py
Mike a98766fc55
Add support for Entity models with UUID as a primary key. (#89)
* chore: fix repo links

* style: flake8 format models.Value

* test: add test for an entity with uuid pk

* feat: support entity models with uuid as pk

* test: check Value repr and str methods
2021-10-22 15:36:17 -07:00

22 lines
559 B
Python

from django.db import migrations, models
class Migration(migrations.Migration):
"""Creates UUID field to map to Entity FK."""
dependencies = [
('eav', '0005_auto_20210510_1305'),
]
operations = [
migrations.AddField(
model_name='value',
name='entity_uuid',
field=models.UUIDField(blank=True, null=True),
),
migrations.AlterField(
model_name='value',
name='entity_id',
field=models.IntegerField(blank=True, null=True),
),
]