From c9cdfea08f5867b03ed75d63c1e6f23af74d8b4b Mon Sep 17 00:00:00 2001 From: jedi Date: Fri, 14 Jun 2024 23:17:07 +0200 Subject: [PATCH] stash --- .../migrations/0009_issuethread_event.py | 20 --------------- core/tickets/migrations/0010_itemrelation.py | 25 ------------------- .../0011_issuethread_related_items.py | 19 -------------- 3 files changed, 64 deletions(-) delete mode 100644 core/tickets/migrations/0009_issuethread_event.py delete mode 100644 core/tickets/migrations/0010_itemrelation.py delete mode 100644 core/tickets/migrations/0011_issuethread_related_items.py diff --git a/core/tickets/migrations/0009_issuethread_event.py b/core/tickets/migrations/0009_issuethread_event.py deleted file mode 100644 index 1ab69e4..0000000 --- a/core/tickets/migrations/0009_issuethread_event.py +++ /dev/null @@ -1,20 +0,0 @@ -# Generated by Django 4.2.7 on 2024-05-03 21:21 - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('inventory', '0004_alter_event_created_at_alter_item_created_at'), - ('tickets', '0008_alter_issuethread_options_and_more'), - ] - - operations = [ - migrations.AddField( - model_name='issuethread', - name='event', - field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='issue_threads', to='inventory.event'), - ), - ] diff --git a/core/tickets/migrations/0010_itemrelation.py b/core/tickets/migrations/0010_itemrelation.py deleted file mode 100644 index c84b9df..0000000 --- a/core/tickets/migrations/0010_itemrelation.py +++ /dev/null @@ -1,25 +0,0 @@ -# Generated by Django 4.2.7 on 2024-05-22 18:19 - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('inventory', '0004_alter_event_created_at_alter_item_created_at'), - ('tickets', '0009_issuethread_event'), - ] - - operations = [ - migrations.CreateModel( - name='ItemRelation', - fields=[ - ('id', models.AutoField(primary_key=True, serialize=False)), - ('timestamp', models.DateTimeField(auto_now_add=True)), - ('status', models.CharField(choices=[('possible', 'Possible'), ('confirmed', 'Confirmed'), ('discarded', 'Discarded'), ('provided', 'Provided')], default='possible', max_length=255)), - ('issue_thread', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='item_relations', to='tickets.issuethread')), - ('item', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='issues', to='inventory.item')), - ], - ), - ] diff --git a/core/tickets/migrations/0011_issuethread_related_items.py b/core/tickets/migrations/0011_issuethread_related_items.py deleted file mode 100644 index 68240bc..0000000 --- a/core/tickets/migrations/0011_issuethread_related_items.py +++ /dev/null @@ -1,19 +0,0 @@ -# Generated by Django 4.2.7 on 2024-06-14 17:48 - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('inventory', '0004_alter_event_created_at_alter_item_created_at'), - ('tickets', '0010_itemrelation'), - ] - - operations = [ - migrations.AddField( - model_name='issuethread', - name='related_items', - field=models.ManyToManyField(through='tickets.ItemRelation', to='inventory.item'), - ), - ]