diff --git a/InvenTree/common/migrations/0014_alter_notificationmessage_creation.py b/InvenTree/common/migrations/0014_alter_notificationmessage_creation.py deleted file mode 100644 index 710e2c7e32..0000000000 --- a/InvenTree/common/migrations/0014_alter_notificationmessage_creation.py +++ /dev/null @@ -1,18 +0,0 @@ -# Generated by Django 3.2.5 on 2021-11-29 22:21 - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('common', '0013_notificationmessage'), - ] - - operations = [ - migrations.AlterField( - model_name='notificationmessage', - name='creation', - field=models.DateTimeField(auto_now_add=True), - ), - ] diff --git a/InvenTree/common/migrations/0013_notificationmessage.py b/InvenTree/common/migrations/0014_notificationmessage.py similarity index 89% rename from InvenTree/common/migrations/0013_notificationmessage.py rename to InvenTree/common/migrations/0014_notificationmessage.py index eee0584848..aa842a20a3 100644 --- a/InvenTree/common/migrations/0013_notificationmessage.py +++ b/InvenTree/common/migrations/0014_notificationmessage.py @@ -1,4 +1,4 @@ -# Generated by Django 3.2.5 on 2021-11-27 14:51 +# Generated by Django 3.2.5 on 2022-02-13 03:09 from django.conf import settings from django.db import migrations, models @@ -8,9 +8,9 @@ import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ - migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('contenttypes', '0002_remove_content_type_name'), - ('common', '0012_notificationentry'), + migrations.swappable_dependency(settings.AUTH_USER_MODEL), + ('common', '0013_webhookendpoint_webhookmessage'), ] operations = [ @@ -23,7 +23,7 @@ class Migration(migrations.Migration): ('category', models.CharField(max_length=250)), ('name', models.CharField(max_length=250)), ('message', models.CharField(blank=True, max_length=250, null=True)), - ('creation', models.DateTimeField(auto_now=True)), + ('creation', models.DateTimeField(auto_now_add=True)), ('read', models.BooleanField(default=False)), ('source_content_type', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='notification_source', to='contenttypes.contenttype')), ('target_content_type', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='notification_target', to='contenttypes.contenttype')),