From f739c571945dce2407a97c2b87ed5867b77a5f3d Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Tue, 18 Feb 2020 16:07:33 +0000 Subject: start fresh with migrations - might have to DROP DB and migrate again --- .../migrations/0002_auto_20200218_1605.py | 43 ++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 ctrack/organisations/migrations/0002_auto_20200218_1605.py (limited to 'ctrack/organisations/migrations/0002_auto_20200218_1605.py') diff --git a/ctrack/organisations/migrations/0002_auto_20200218_1605.py b/ctrack/organisations/migrations/0002_auto_20200218_1605.py new file mode 100644 index 0000000..14359dd --- /dev/null +++ b/ctrack/organisations/migrations/0002_auto_20200218_1605.py @@ -0,0 +1,43 @@ +# Generated by Django 2.2.9 on 2020-02-18 16:05 + +from django.conf import settings +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + initial = True + + dependencies = [ + ('organisations', '0001_initial'), + migrations.swappable_dependency(settings.AUTH_USER_MODEL), + ] + + operations = [ + migrations.AddField( + model_name='person', + name='updated_by', + field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL), + ), + migrations.AddField( + model_name='organisation', + name='submode', + field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='organisations.Submode'), + ), + migrations.AddField( + model_name='organisation', + name='updated_by', + field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL), + ), + migrations.AddField( + model_name='address', + name='organisation', + field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='addresses', to='organisations.Organisation'), + ), + migrations.AddField( + model_name='address', + name='type', + field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='organisations.AddressType', verbose_name='Address Type'), + ), + ] -- cgit v1.2.3