mirror of
https://github.com/Southampton-RSG/breccia-mapper.git
synced 2026-03-03 11:27:09 +00:00
refactor: move static person qs to answerset
This commit is contained in:
26
people/migrations/0025_rename_relationship_target.py
Normal file
26
people/migrations/0025_rename_relationship_target.py
Normal file
@@ -0,0 +1,26 @@
|
||||
# Generated by Django 2.2.10 on 2020-11-27 08:49
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('people', '0024_remove_age_gender'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RemoveConstraint(
|
||||
model_name='relationship',
|
||||
name='unique_relationship',
|
||||
),
|
||||
migrations.RenameField(
|
||||
model_name='relationship',
|
||||
old_name='target',
|
||||
new_name='target_person',
|
||||
),
|
||||
migrations.AddConstraint(
|
||||
model_name='relationship',
|
||||
constraint=models.UniqueConstraint(fields=('source', 'target_person'), name='unique_relationship'),
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user