diff --git a/InvenTree/common/migrations/0012_webhookendpoint.py b/InvenTree/common/migrations/0012_webhookendpoint.py deleted file mode 100644 index b3cf6bce2f..0000000000 --- a/InvenTree/common/migrations/0012_webhookendpoint.py +++ /dev/null @@ -1,28 +0,0 @@ -# Generated by Django 3.2.4 on 2021-09-12 12:42 - -from django.conf import settings -from django.db import migrations, models -import django.db.models.deletion -import uuid - - -class Migration(migrations.Migration): - - dependencies = [ - migrations.swappable_dependency(settings.AUTH_USER_MODEL), - ('common', '0011_auto_20210722_2114'), - ] - - operations = [ - migrations.CreateModel( - name='WebhookEndpoint', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('endpoint_id', models.CharField(default=uuid.uuid4, editable=False, help_text='Endpoint at which this webhook is received', max_length=255, verbose_name='Endpoint')), - ('name', models.CharField(blank=True, help_text='Name for this webhook', max_length=255, null=True, verbose_name='Name')), - ('active', models.BooleanField(default=True, help_text='Is this webhook active', verbose_name='Active')), - ('token', models.CharField(blank=True, default=uuid.uuid4, help_text='Token for access', max_length=255, null=True, verbose_name='Token')), - ('user', models.ForeignKey(blank=True, help_text='User', null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL, verbose_name='User')), - ], - ), - ] diff --git a/InvenTree/common/migrations/0013_auto_20210912_1443.py b/InvenTree/common/migrations/0013_auto_20210912_1443.py deleted file mode 100644 index f9c05fe05f..0000000000 --- a/InvenTree/common/migrations/0013_auto_20210912_1443.py +++ /dev/null @@ -1,18 +0,0 @@ -# Generated by Django 3.2.4 on 2021-09-12 14:43 - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('common', '0012_webhookendpoint'), - ] - - operations = [ - migrations.AddField( - model_name='webhookendpoint', - name='secret', - field=models.CharField(blank=True, help_text='Shared secret for HMAC', max_length=255, null=True, verbose_name='Secret'), - ), - ] diff --git a/InvenTree/common/migrations/0014_auto_20210912_1804.py b/InvenTree/common/migrations/0014_auto_20210912_1804.py deleted file mode 100644 index 18feb0d4a4..0000000000 --- a/InvenTree/common/migrations/0014_auto_20210912_1804.py +++ /dev/null @@ -1,26 +0,0 @@ -# Generated by Django 3.2.4 on 2021-09-12 18:04 - -from django.db import migrations, models -import django.db.models.deletion -import uuid - - -class Migration(migrations.Migration): - - dependencies = [ - ('common', '0013_auto_20210912_1443'), - ] - - operations = [ - migrations.CreateModel( - name='WebhookMessage', - fields=[ - ('message_id', models.UUIDField(default=uuid.uuid4, editable=False, help_text='Unique identifier for this message', primary_key=True, serialize=False, verbose_name='Message ID')), - ('host', models.CharField(editable=False, help_text='Host from which this message was received', max_length=255, verbose_name='Host')), - ('header', models.CharField(blank=True, editable=False, help_text='Header of this message', max_length=255, null=True, verbose_name='Header')), - ('body', models.JSONField(blank=True, editable=False, help_text='Body of this message', null=True, verbose_name='Body')), - ('worked_on', models.BooleanField(default=False, help_text='Was the work on this message finished?', verbose_name='Worked on')), - ('endpoint', models.ForeignKey(blank=True, help_text='Endpoint on which this message was received', null=True, on_delete=django.db.models.deletion.SET_NULL, to='common.webhookendpoint', verbose_name='Endpoint')), - ], - ), - ] diff --git a/InvenTree/common/migrations/0015_merge_0012_notificationentry_0014_auto_20210912_1804.py b/InvenTree/common/migrations/0015_merge_0012_notificationentry_0014_auto_20210912_1804.py deleted file mode 100644 index 8d2d4d0b18..0000000000 --- a/InvenTree/common/migrations/0015_merge_0012_notificationentry_0014_auto_20210912_1804.py +++ /dev/null @@ -1,14 +0,0 @@ -# Generated by Django 3.2.5 on 2021-11-04 09:27 - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('common', '0012_notificationentry'), - ('common', '0014_auto_20210912_1804'), - ] - - operations = [ - ]