Skip to content

Commit

Permalink
TrajectoryEstimate migration
Browse files Browse the repository at this point in the history
  • Loading branch information
k1o0 committed Mar 22, 2024
1 parent d57e661 commit fafc06e
Showing 1 changed file with 25 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Generated by Django 4.2.11 on 2024-03-22 12:45

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('experiments', '0012_fov_imagingstack_imagingtype_alter_channel_lateral_and_more'),
]

operations = [
migrations.RemoveConstraint(
model_name='trajectoryestimate',
name='unique_trajectory_per_provenance',
),
migrations.AddConstraint(
model_name='trajectoryestimate',
constraint=models.UniqueConstraint(condition=models.Q(('probe_insertion__isnull', True)), fields=('provenance', 'chronic_insertion'), name='unique_trajectory_per_chronic_provenance'),
),
migrations.AddConstraint(
model_name='trajectoryestimate',
constraint=models.UniqueConstraint(condition=models.Q(('probe_insertion__isnull', False)), fields=('provenance', 'probe_insertion'), name='unique_trajectory_per_provenance'),
),
]

0 comments on commit fafc06e

Please sign in to comment.