aboutsummaryrefslogtreecommitdiffstats
path: root/ctrack/register/migrations/0002_auto_20201021_1551.py
diff options
context:
space:
mode:
authorMatthew Lemon <lemon@matthewlemon.com>2020-10-21 17:08:24 +0100
committerMatthew Lemon <lemon@matthewlemon.com>2020-10-21 17:08:35 +0100
commitecd2c19b265e3974707da0d9b8e260749dcf4a9f (patch)
treea47b8e820e98e39fca7108c1f98bc500bf0c98d9 /ctrack/register/migrations/0002_auto_20201021_1551.py
parent07c741c785761cfa0e9895e35ba7e1f1549ce676 (diff)
renamed a field in a model to date and look what I need! new migrations and fixed tests
Diffstat (limited to '')
-rw-r--r--ctrack/register/migrations/0002_auto_20201021_1551.py (renamed from ctrack/register/migrations/0002_auto_20201014_1605.py)20
1 files changed, 15 insertions, 5 deletions
diff --git a/ctrack/register/migrations/0002_auto_20201014_1605.py b/ctrack/register/migrations/0002_auto_20201021_1551.py
index 0d4b440..93c02c8 100644
--- a/ctrack/register/migrations/0002_auto_20201014_1605.py
+++ b/ctrack/register/migrations/0002_auto_20201021_1551.py
@@ -1,4 +1,4 @@
-# Generated by Django 3.1.2 on 2020-10-14 16:05
+# Generated by Django 3.1.2 on 2020-10-21 15:51
import ctrack.register.models
from django.conf import settings
@@ -12,10 +12,10 @@ class Migration(migrations.Migration):
initial = True
dependencies = [
- migrations.swappable_dependency(settings.AUTH_USER_MODEL),
- ('organisations', '0001_initial'),
- ('caf', '0001_initial'),
+ ('organisations', '0002_auto_20201021_1551'),
('register', '0001_initial'),
+ migrations.swappable_dependency(settings.AUTH_USER_MODEL),
+ ('caf', '0002_auto_20201021_1551'),
]
operations = [
@@ -25,6 +25,16 @@ class Migration(migrations.Migration):
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL),
),
migrations.AddField(
+ model_name='noteevent',
+ name='organisation',
+ field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='organisations.organisation'),
+ ),
+ migrations.AddField(
+ model_name='noteevent',
+ name='user',
+ field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL),
+ ),
+ migrations.AddField(
model_name='engagementevent',
name='participants',
field=models.ManyToManyField(blank=True, to='organisations.Person'),
@@ -66,7 +76,7 @@ class Migration(migrations.Migration):
),
migrations.AddConstraint(
model_name='caftwindateevent',
- constraint=models.CheckConstraint(check=models.Q(_negated=True, end_date__lt=django.db.models.expressions.F('start_date')), name='register_caftwindateevent_cannot_precede_start_date'),
+ constraint=models.CheckConstraint(check=models.Q(_negated=True, end_date__lt=django.db.models.expressions.F('date')), name='register_caftwindateevent_cannot_precede_start_date'),
),
migrations.AddConstraint(
model_name='cafsingledateevent',